travis: try running tests under osx with homebrew
This commit is contained in:
parent
e73d353188
commit
63a3dfcab3
20
.travis.yml
20
.travis.yml
|
@ -24,10 +24,26 @@ matrix:
|
|||
dist: trusty
|
||||
language: python
|
||||
python: "3.6"
|
||||
- os: osx
|
||||
osx_image: xcode6.4
|
||||
language: generic
|
||||
env: PYVER="3" CFLAGS="-std=c90 -pedantic -Wno-long-long -Werror"
|
||||
- os: osx
|
||||
osx_image: xcode6.4
|
||||
language: generic
|
||||
env: PYVER="2" CFLAGS="-std=c90 -pedantic -Wno-long-long -Werror"
|
||||
|
||||
|
||||
install:
|
||||
- travis_retry sudo apt-get update -q
|
||||
- travis_retry sudo apt-get install -y libcairo2-dev
|
||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then travis_retry sudo apt-get update -q; fi
|
||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then travis_retry sudo apt-get install -y libcairo2-dev; fi
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$PYVER" == "2" ]]; then brew install python cairo; fi
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$PYVER" == "2" ]]; then python -m pip install virtualenv; fi
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$PYVER" == "2" ]]; then virtualenv ../venv -p python; fi
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$PYVER" == "3" ]]; then brew install python3 cairo; fi
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$PYVER" == "3" ]]; then python3 -m pip install virtualenv; fi
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$PYVER" == "3" ]]; then virtualenv ../venv -p python3; fi
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source ../venv/bin/activate; fi
|
||||
- python -m pip install --upgrade pytest flake8 sphinx sphinx_rtd_theme
|
||||
|
||||
script:
|
||||
|
|
Loading…
Reference in New Issue