Update .travis.yml

This commit is contained in:
Manuel Riel 2018-11-20 15:06:11 +08:00 committed by GitHub
parent 30057e0e51
commit 2022fd39a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 2 deletions

View File

@ -11,7 +11,14 @@ addons:
- libacl1-dev - libacl1-dev
- libacl1 - libacl1
- build-essential - build-essential
homebrew:
packages:
- openssl
- readline
- pyenv-virtualenv
casks:
- xquartz
cache: cache:
- pip - pip
@ -40,7 +47,11 @@ install:
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX +render -noreset /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX +render -noreset
sleep 3 sleep 3
elif [ $TRAVIS_OS_NAME = "osx" ]; then elif [ $TRAVIS_OS_NAME = "osx" ]; then
brew cask install xquartz CFLAGS="-I$(xcrun --show-sdk-path)/usr/include" pyenv install 3.6.7
export PYENV_VERSION=3.6.7
export PATH="/Users/travis/.pyenv/shims:${PATH}"
pyenv-virtualenv venv
source venv/bin/activate
fi fi
- pip install . - pip install .