Update .travis.yml

This commit is contained in:
Manuel Riel 2018-11-20 13:41:11 +08:00 committed by GitHub
parent 6026ef9a54
commit 3115f4cf4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 15 deletions

View File

@ -5,10 +5,18 @@ addons:
apt:
packages:
- xvfb
- python3.6-venv
cache:
- pip
- pip
- directories:
- $HOME/.pyenv_cache
before_install:
- |
if [[ -n "$PYENV_VERSION" ]]; then
wget https://github.com/praekeltfoundation/travis-pyenv/releases/download/0.4.0/setup-pyenv.sh
source setup-pyenv.sh
fi
sudo: required
@ -16,25 +24,15 @@ dist: trusty
env:
global:
# used by ci-helpers
- SETUP_XVFB=true
- PIP_DEPENDENCIES='hacking pytest pytest-qt'
- MPLBACKEND=TkAgg # for osx
matrix:
include:
- os: osx
env:
- PYTEST_QT_API=pyqt5
- PYQT_PACKAGE='pyqt=5'
- PYTHON_VERSION=3.6
- RUN_PYINSTALLER=true
- os: linux
dist: trusty
env:
- PYTEST_QT_API=pyqt5
- PYQT_PACKAGE='pyqt=5'
- PYTHON_VERSION=3.6
- PYENV_VERSION=py36
- RUN_PYINSTALLER=true
install:
@ -47,8 +45,6 @@ install:
brew cask install xquartz
fi
- python3 -m venv venv
- source activate venv
- pip install .
- pip install -r requirements-dev.txt