.travis.yml 1.3 KB

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