Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
language: python


matrix:
include:
- os: linux
python: 3.5
- os: linux
python: 3.6
- os: linux
python: 3.7
- os: linux
python: 3.8
- os: osx
language: generic
env: PYTHON_VERSION=3.6.0
- os: osx
language: generic
env: PYTHON_VERSION=3.7.0
- os: osx
language: generic
env: PYTHON_VERSION=3.8.0


install:
- |
# Manually installing pyenv and the required python version as travis does not support python builds on MacOS
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update
brew install pyenv
eval "$(pyenv init -)"
pyenv install --skip-existing $PYTHON_VERSION
pyenv global $PYTHON_VERSION
pyenv shell $PYTHON_VERSION
pip install -U pip setuptools wheel py
fi
pip install -r requirements.txt


script:
python -m pytest


cache:
directories:
# Caching homebrew and pyenv directories to reduce build time (as they add several minutes otherwise)
- $HOME/Library/Caches/Homebrew
- /usr/local/Homebrew
- $HOME/.pyenv/versions


before_cache:
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew cleanup; fi