.travis.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. language: generic
  2. sudo: required
  3. dist: trusty
  4. env:
  5. global:
  6. # used by ci-helpers
  7. - CONDA_CHANNELS=conda-forge SETUP_XVFB=true PIP_DEPENDENCIES='hacking pytest pytest-qt'
  8. matrix:
  9. - PYTEST_QT_API=pyqt4 PYQT_PACKAGE='pyqt=4' PYTHON_VERSION=2.7
  10. - PYTEST_QT_API=pyqt5 PYQT_PACKAGE='pyqt=5' PYTHON_VERSION=3.6
  11. install:
  12. - sudo apt-get update
  13. # Xvfb / window manager
  14. - sudo apt-get install -y xvfb herbstluftwm
  15. # Setup miniconda
  16. - git clone --depth 1 git://github.com/astropy/ci-helpers.git
  17. - CONDA_DEPENDENCIES=$PYQT_PACKAGE source ci-helpers/travis/setup_conda.sh
  18. - source activate test && pip install .
  19. before_script:
  20. - "herbstluftwm &"
  21. - sleep 1
  22. script:
  23. - source activate test
  24. - flake8 examples labelme setup.py tests
  25. - pytest -v tests
  26. - labelme --help
  27. - (cd examples/single_image && rm -rf apc2016_obj3_json && labelme_json_to_dataset apc2016_obj3.json && python load_label_png.py && git checkout -- .)
  28. - (cd examples/semantic_segmentation && rm -rf data_dataset_voc && ./labelme2voc.py labels.txt data_annotated data_dataset_voc && git checkout -- .)
  29. - (cd examples/instance_segmentation && rm -rf data_dataset_voc && ./labelme2voc.py labels.txt data_annotated data_dataset_voc && git checkout -- .)
  30. branches:
  31. only:
  32. - master
  33. notifications:
  34. email: false