File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ language : python
2+
3+
4+ matrix :
5+ include :
6+ - os : linux
7+ python : 3.5
8+ - os : linux
9+ python : 3.6
10+ - os : linux
11+ python : 3.7
12+ - os : linux
13+ python : 3.8
14+ - os : osx
15+ language : generic
16+ env : PYTHON_VERSION=3.6.0
17+ - os : osx
18+ language : generic
19+ env : PYTHON_VERSION=3.7.0
20+ - os : osx
21+ language : generic
22+ env : PYTHON_VERSION=3.8.0
23+
24+
25+ install :
26+ - |
27+ # Manually installing pyenv and the required python version as travis does not support python builds on MacOS
28+ if [ "$TRAVIS_OS_NAME" == "osx" ]; then
29+ brew update
30+ brew install pyenv
31+ eval "$(pyenv init -)"
32+ pyenv install --skip-existing $PYTHON_VERSION
33+ pyenv global $PYTHON_VERSION
34+ pyenv shell $PYTHON_VERSION
35+ pip install -U pip setuptools wheel py
36+ fi
37+ pip install -r requirements.txt
38+
39+
40+ script :
41+ python -m pytest
42+
43+
44+ cache :
45+ directories :
46+ # Caching homebrew and pyenv directories to reduce build time (as they add several minutes otherwise)
47+ - $HOME/Library/Caches/Homebrew
48+ - /usr/local/Homebrew
49+ - $HOME/.pyenv/versions
50+
51+
52+ before_cache :
53+ - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew cleanup; fi
You can’t perform that action at this time.
0 commit comments