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,6 +11,13 @@ addons:
- libacl1-dev
- libacl1
- build-essential
homebrew:
packages:
- openssl
- readline
- pyenv-virtualenv
casks:
- xquartz
cache:
- 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
sleep 3
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
- pip install .