Skip to content

Commit b7787bb

Browse files
committed
Updates Travis configuration to use latest pypy
1 parent e65f4a5 commit b7787bb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,19 @@ before_install:
2828
- pip install codecov
2929

3030
install:
31+
- |
32+
if [ "$TRAVIS_PYTHON_VERSION" = "pypy" ]; then
33+
export PYENV_ROOT="$HOME/.pyenv"
34+
if [ -f "$PYENV_ROOT/bin/pyenv" ]; then
35+
pushd "$PYENV_ROOT" && git pull && popd
36+
else
37+
rm -rf "$PYENV_ROOT" && git clone --depth 1 https://github.com/yyuu/pyenv.git "$PYENV_ROOT"
38+
fi
39+
export PYPY_VERSION="5.4.1"
40+
"$PYENV_ROOT/bin/pyenv" install --skip-existing "pypy-$PYPY_VERSION"
41+
virtualenv --python="$PYENV_ROOT/versions/pypy-$PYPY_VERSION/bin/python" "$HOME/virtualenvs/pypy-$PYPY_VERSION"
42+
source "$HOME/virtualenvs/pypy-$PYPY_VERSION/bin/activate"
43+
fi
3144
- pip install -r tests-requirements.txt
3245
- python setup.py develop
3346

0 commit comments

Comments
 (0)