Skip to content

Commit a9cb3ae

Browse files
committed
Update travis build environment
Signed-off-by: Steven Esser <[email protected]>
1 parent 83695f9 commit a9cb3ae

File tree

1 file changed

+47
-29
lines changed

1 file changed

+47
-29
lines changed

.travis.yml

Lines changed: 47 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,67 @@
11
matrix:
22
include:
33
- os: osx
4-
language: generic
54
env:
6-
- PYENV_PYTHON="2.7.14"
5+
- PYTHON="3.6.8"
6+
- TEST_SUITE="bin/py.test -vvs"
7+
language: generic
8+
python:
79

810
- os: osx
9-
language: generic
1011
env:
11-
- PYENV_PYTHON="3.6.1"
12-
13-
- os: linux
12+
- PYTHON="2.7.15"
13+
- TEST_SUITE="bin/py.test -vvs"
1414
language: generic
15-
env:
16-
- PYENV_PYTHON="2.7.14"
15+
python:
1716

1817
- os: linux
19-
language: generic
20-
env:
21-
- PYENV_PYTHON="3.6.1"
18+
sudo: required
19+
env: TEST_SUITE="bin/py.test -vvs"
20+
language: python
21+
python: "2.7"
22+
dist: xenial
23+
24+
- os: linux
25+
sudo: required
26+
env: TEST_SUITE="bin/py.test -vvs"
27+
language: python
28+
python: "2.7"
29+
dist: bionic
30+
31+
- os: linux
32+
sudo: required
33+
env: TEST_SUITE="bin/py.test -vvs"
34+
language: python
35+
python: "3.6"
36+
dist: xenial
37+
38+
- os: linux
39+
sudo: required
40+
env: TEST_SUITE="bin/py.test -vvs"
41+
language: python
42+
python: "3.6"
43+
dist: bionic
2244

45+
addons:
46+
homebrew:
47+
packages:
48+
- openssl
49+
- readline
50+
- sqlite3
51+
- xz
52+
- zlib
53+
- pyenv
54+
update: true
2355

2456
install:
25-
- |
26-
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
27-
rm -rf ~/.pyenv
28-
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
29-
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
30-
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
31-
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profile
32-
exec "$SHELL"
33-
fi
34-
- which pyenv
35-
- pyenv install --list
36-
- python --version
37-
- pyenv install "$PYENV_PYTHON"
38-
- pyenv global "$PYENV_PYTHON"
39-
- python --version
4057
- ./configure
4158

42-
4359
script:
60+
# If debugging, use a subset of tests to wait less:
61+
# - ./bin/py.test -n 2 -vvs --cov=src tests/scancode
62+
# - echo $TEST_SUITE
4463
- bin/about-code check --verbose .
45-
- "bin/py.test -vvs"
46-
64+
- $TEST_SUITE
4765

4866
notifications:
4967
irc:

0 commit comments

Comments
 (0)