12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- language: generic
- sudo: required
- dist: trusty
- env:
- global:
- # used by ci-helpers
- - SETUP_XVFB=true PIP_DEPENDENCIES='hacking pytest pytest-qt'
- matrix:
- - PYTEST_QT_API=pyqt4v2 PYQT_PACKAGE='pyqt=4' PYTHON_VERSION=2.7
- - PYTEST_QT_API=pyside2 CONDA_CHANNELS='conda-forge' PYQT_PACKAGE='pyside2' PYTHON_VERSION=2.7
- - PYTEST_QT_API=pyside2 CONDA_CHANNELS='conda-forge' PYQT_PACKAGE='pyside2' PYTHON_VERSION=3.6
- - PYTEST_QT_API=pyqt5 PYQT_PACKAGE='pyqt=5' PYTHON_VERSION=2.7
- - PYTEST_QT_API=pyqt5 PYQT_PACKAGE='pyqt=5' PYTHON_VERSION=3.6
- install:
- - sudo apt-get update
- # Xvfb / window manager
- - sudo apt-get install -y xvfb herbstluftwm
- # Setup miniconda
- - git clone --depth 1 git://github.com/astropy/ci-helpers.git
- - CONDA_DEPENDENCIES=$PYQT_PACKAGE source ci-helpers/travis/setup_conda.sh
- - source activate test && pip install .
- before_script:
- - "herbstluftwm &"
- - sleep 1
- script:
- - source activate test
- - flake8 examples labelme setup.py tests
- - pytest -v tests
- - labelme --help
- - labelme --version
- - (cd examples/tutorial && rm -rf apc2016_obj3_json && labelme_json_to_dataset apc2016_obj3.json && python load_label_png.py && git checkout -- .)
- - (cd examples/semantic_segmentation && rm -rf data_dataset_voc && ./labelme2voc.py labels.txt data_annotated data_dataset_voc && git checkout -- .)
- - (cd examples/instance_segmentation && rm -rf data_dataset_voc && ./labelme2voc.py labels.txt data_annotated data_dataset_voc && git checkout -- .)
- branches:
- only:
- - master
- notifications:
- email: false
|