Update .travis.yml

This commit is contained in:
Manuel Riel 2018-11-20 16:04:59 +08:00 committed by GitHub
parent b6f49e535a
commit b393576de4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 5 deletions

View File

@ -11,10 +11,11 @@ addons:
- libacl1 - libacl1
- build-essential - build-essential
homebrew: homebrew:
update: true update: false
packages: packages:
- openssl - openssl
- readline - readline
- pyenv
- pyenv-virtualenv - pyenv-virtualenv
casks: casks:
- xquartz - xquartz
@ -46,7 +47,9 @@ install:
- | - |
if [ $TRAVIS_OS_NAME = "linux" ]; then if [ $TRAVIS_OS_NAME = "linux" ]; then
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv #git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
git clone git://github.com/pyenv/pyenv-update.git $(pyenv root)/plugins/pyenv-update
pyenv update
pyenv install 3.6.7 pyenv install 3.6.7
export PATH="/home/travis/.pyenv/shims:${PATH}" export PATH="/home/travis/.pyenv/shims:${PATH}"
export DISPLAY=:99.0 export DISPLAY=:99.0
@ -57,9 +60,8 @@ install:
CFLAGS="-I$(xcrun --show-sdk-path)/usr/include" pyenv install 3.6.7 CFLAGS="-I$(xcrun --show-sdk-path)/usr/include" pyenv install 3.6.7
export PATH="/Users/travis/.pyenv/shims:${PATH}" export PATH="/Users/travis/.pyenv/shims:${PATH}"
fi fi
export PYENV_VERSION=3.6.7 eval "$(pyenv init -)"
pyenv virtualenv venv 3.6.7 pyenv shell 3.6.7
pyenv shell venv
- pip install . - pip install .
- pip install borgbackup - pip install borgbackup