提交 d66ad415 编写于 作者: K Kentaro Wada

Add os: osx to .travis.yml

上级 cb04491c
language: generic language: generic
sudo: required sudo: required
dist: trusty dist: trusty
env: env:
global: global:
# used by ci-helpers # used by ci-helpers
- SETUP_XVFB=true PIP_DEPENDENCIES='hacking pytest pytest-qt' - SETUP_XVFB=true PIP_DEPENDENCIES='hacking pytest pytest-qt'
matrix: matrix:
- PYTEST_QT_API=pyqt4v2 PYQT_PACKAGE='pyqt=4' PYTHON_VERSION=2.7.14 include:
- PYTEST_QT_API=pyside2 CONDA_CHANNELS='conda-forge' PYQT_PACKAGE='pyside2' PYTHON_VERSION=2.7.14 - os: linux
- PYTEST_QT_API=pyside2 CONDA_CHANNELS='conda-forge' PYQT_PACKAGE='pyside2' PYTHON_VERSION=3.6.5 dist: trusty
- PYTEST_QT_API=pyqt5 PYQT_PACKAGE='pyqt=5' PYTHON_VERSION=2.7.14 env:
- PYTEST_QT_API=pyqt5 PYQT_PACKAGE='pyqt=5' PYTHON_VERSION=3.6.5 - PYTEST_QT_API=pyqt4v2
- PYQT_PACKAGE='pyqt=4'
- PYTHON_VERSION=2.7.14
- os: linux
dist: trusty
env:
- PYTEST_QT_API=pyside2
- CONDA_CHANNELS='conda-forge'
- PYQT_PACKAGE='pyside2'
- PYTHON_VERSION=2.7.14
- os: linux
dist: trusty
env:
- PYTEST_QT_API=pyside2
- CONDA_CHANNELS='conda-forge'
- PYQT_PACKAGE='pyside2'
- PYTHON_VERSION=3.6.5
- os: linux
dist: trusty
env:
- PYTEST_QT_API=pyqt5
- PYQT_PACKAGE='pyqt=5'
- PYTHON_VERSION=2.7.14
- os: linux
dist: trusty
env:
- PYTEST_QT_API=pyqt5
- PYQT_PACKAGE='pyqt=5'
- PYTHON_VERSION=3.6.5
- os: osx
env:
- PYTEST_QT_API=pyqt5
- PYQT_PACKAGE='pyqt=5'
- PYTHON_VERSION=3.6.5
install: install:
- sudo apt-get update - |
if [ $TRAVIS_OS_NAME = "linux" ]; then
sudo apt-get update
# Xvfb / window manager # Xvfb / window manager
- sudo apt-get install -y xvfb herbstluftwm sudo apt-get install -y xvfb herbstluftwm
fi
# Setup miniconda # Setup miniconda
- git clone --depth 1 git://github.com/astropy/ci-helpers.git - git clone --depth 1 git://github.com/astropy/ci-helpers.git
...@@ -33,7 +71,14 @@ before_script: ...@@ -33,7 +71,14 @@ before_script:
script: script:
- source activate test - source activate test
- flake8 examples labelme setup.py tests - flake8 examples labelme setup.py tests
- pytest -v tests - |
if [ $TRAVIS_OS_NAME = "linux" ]; then
pytest -v tests
fi
- |
if [ $TRAVIS_OS_NAME = "osx" ]; then
export MPLBACKEND=TkAgg
fi
- labelme --help - labelme --help
- labelme --version - 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/tutorial && rm -rf apc2016_obj3_json && labelme_json_to_dataset apc2016_obj3.json && python load_label_png.py && git checkout -- .)
...@@ -51,7 +96,7 @@ after_script: ...@@ -51,7 +96,7 @@ after_script:
git clone https://github.com/pyenv/pyenv.git $HOME/.pyenv git clone https://github.com/pyenv/pyenv.git $HOME/.pyenv
export PYENV_ROOT=$HOME/.pyenv export PYENV_ROOT=$HOME/.pyenv
export PATH=$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH export PATH=$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
pyenv install -ks $PYTHON_VERSION CONFIGURE_OPTS=--enable-shared pyenv install -ks $PYTHON_VERSION
pyenv global $PYTHON_VERSION pyenv global $PYTHON_VERSION
which python && python --version which python && python --version
which pip && pip --version which pip && pip --version
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册