Skip to content

Commit 3dee7c4

Browse files
committed
Fix failures from Travis build config updates
1 parent 6dad6e6 commit 3dee7c4

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

.travis.yml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,37 +13,23 @@ matrix:
1313
include:
1414
- language: generic
1515
python: 2.7
16-
os: osx
17-
- language: generic
18-
python: 3.5
16+
env: PYTHON_VERSION=2
1917
os: osx
2018
- language: generic
2119
python: 3.6
20+
env: PYTHON_VERSION=3
2221
os: osx
2322
allow_failures:
2423
- python: pypy3
2524

2625
install:
27-
- |
28-
if [ "$TRAVIS_PYTHON_VERSION" = "pypy" ]; then
29-
export PYENV_ROOT="$HOME/.pyenv"
30-
if [ -f "$PYENV_ROOT/bin/pyenv" ]; then
31-
pushd "$PYENV_ROOT" && git pull && popd
32-
else
33-
rm -rf "$PYENV_ROOT" && git clone --depth 1 https://github.com/yyuu/pyenv.git "$PYENV_ROOT"
34-
fi
35-
export PYPY_VERSION="5.4.1"
36-
"$PYENV_ROOT/bin/pyenv" install --skip-existing "pypy-$PYPY_VERSION"
37-
virtualenv --python="$PYENV_ROOT/versions/pypy-$PYPY_VERSION/bin/python" "$HOME/virtualenvs/pypy-$PYPY_VERSION"
38-
source "$HOME/virtualenvs/pypy-$PYPY_VERSION/bin/activate"
39-
fi
4026
- if [[ $TRAVIS_OS_NAME == osx ]]; then brew update; fi
41-
- if [[ $TRAVIS_OS_NAME == osx ]]; then brew install openssl; fi
27+
- if [[ $TRAVIS_OS_NAME == osx ]]; then brew install openssl python$PYTHON_VERSION; fi
4228
- if [[ $TRAVIS_OS_NAME == osx ]]; then export LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include"; fi
43-
- pip install --upgrade pip virtualenv
44-
- virtualenv --python=python env
29+
- virtualenv --python=python$PYTHON_VERSION env
4530
- source env/bin/activate
4631
- make install
32+
- if [[ $TRAVIS_PYTHON_VERSION == pypy ]]; then pip install lxml==3.8.0; fi
4733

4834
script:
4935
- make test

0 commit comments

Comments
 (0)