.travis.yml 1.5 KB

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