1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2024-12-23 00:07:58 +00:00

Update .travis.yml

This commit is contained in:
Manuel Riel 2018-11-20 16:17:49 +08:00 committed by GitHub
parent b393576de4
commit 2869287140
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,6 +32,7 @@ dist: trusty
env: env:
global: global:
- SETUP_XVFB=true - SETUP_XVFB=true
- PYTHON=3.6.1
matrix: matrix:
include: include:
@ -46,22 +47,22 @@ matrix:
install: 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 #git clone git://github.com/pyenv/pyenv-update.git $(pyenv root)/plugins/pyenv-update
pyenv update pyenv update
pyenv install 3.6.7 pyenv install $PYTHON
export PATH="/home/travis/.pyenv/shims:${PATH}" export PATH="/home/travis/.pyenv/shims:${PATH}"
export DISPLAY=:99.0 export DISPLAY=:99.0
/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 update && brew upgrade pyenv brew update && brew upgrade pyenv
CFLAGS="-I$(xcrun --show-sdk-path)/usr/include" pyenv install 3.6.7 CFLAGS="-I$(xcrun --show-sdk-path)/usr/include" pyenv install $PYTHON
export PATH="/Users/travis/.pyenv/shims:${PATH}" export PATH="/Users/travis/.pyenv/shims:${PATH}"
fi fi
eval "$(pyenv init -)" eval "$(pyenv init -)"
pyenv shell 3.6.7 pyenv shell $PYTHON
- pip install . - pip install .
- pip install borgbackup - pip install borgbackup