config.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Python CircleCI 2.0 configuration file
  2. #
  3. # Check https://circleci.com/docs/2.0/language-python/ for more details
  4. #
  5. version: 2
  6. jobs:
  7. build:
  8. docker:
  9. # specify the version you desire here
  10. # use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers`
  11. # - image: circleci/python:3.6.1
  12. - image: gethue/hue-cci:1.0.0
  13. # Specify service dependencies here if necessary
  14. # CircleCI maintains a library of pre-built images
  15. # documented at https://circleci.com/docs/2.0/circleci-images/
  16. # - image: circleci/postgres:9.4
  17. working_directory: ~/repo
  18. steps:
  19. - checkout
  20. # Download and cache dependencies
  21. - restore_cache:
  22. keys:
  23. - v1-dependencies-{{ checksum "requirements.txt" }}
  24. # fallback to using the latest cache if no exact match is found
  25. - v1-dependencies-
  26. - run:
  27. name: install dependencies
  28. command: |
  29. # python -m venv venv
  30. # . venv/bin/activate
  31. # pip install -r requirements.txt
  32. # TODO: here should copy from repo to the local Hue
  33. # Then do 'make npm-install'
  34. echo 'ok'
  35. - save_cache:
  36. paths:
  37. - ./venv
  38. key: v1-dependencies-{{ checksum "requirements.txt" }}
  39. # run tests!
  40. # this example uses Django's built-in test-runner
  41. # other common Python testing frameworks include pytest and nose
  42. # https://pytest.org
  43. # https://nose.readthedocs.io
  44. - run:
  45. name: run tests
  46. command: |
  47. #. venv/bin/activate
  48. cd /usr/share/hue
  49. ./build/env/bin/hue
  50. #python manage.py test
  51. - store_artifacts:
  52. path: test-reports
  53. destination: test-reports