Skip to content

Commit d65afaf

Browse files
committed
Improve Travis matrix for Python #22
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent b2170f8 commit d65afaf

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

.travis.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
1-
# This deliberately is not "python" as a work-around to support
2-
# multi-os builds with custom Python versions in Travis CI.
3-
language: cpp
4-
51
os:
62
- osx
73
- linux
84

95
env:
106
matrix:
11-
- PYTHON_EXE="`which python2`"
12-
- PYTHON_EXE="`which python3.4`"
13-
- PYTHON_EXE="`which python3.5`"
14-
- PYTHON_EXE="`which python3.6`"
7+
- PYTHON_EXE="`pyenv install -s 2.7.6 && pyenv local 2.7.6`"
8+
- PYTHON_EXE="`pyenv install -s 2.7.13 && pyenv local 2.7.13`"
9+
- PYTHON_EXE="`pyenv install -s 3.5.3 && pyenv local 3.5.3`"
10+
- PYTHON_EXE="`pyenv install -s 3.6.1 && pyenv local 3.6.1`"
1511

1612
install:
17-
- PYTHON_EXE=$PYTHON_EXE ./configure
13+
- ./configure
1814

1915
script:
2016
- "bin/py.test -vvs"

0 commit comments

Comments
 (0)