10000 Use never verson of pypy on travis. · sonlinux/client_python@9e1f993 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9e1f993

Browse files
committed
Use never verson of pypy on travis.
1 parent f85ccd9 commit 9e1f993

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@ cache:
33
directories:
44
- $HOME/.cache/pip
55

6+
# Pending https://github.com/travis-ci/travis-ci/issues/5027
7+
before_install:
8+
- |
9+
if [ "$TRAVIS_PYTHON_VERSION" = "pypy" ]; then
10+
export PYENV_ROOT="$HOME/.pyenv"
11+
if [ -f "$PYENV_ROOT/bin/pyenv" ]; then
12+
cd "$PYENV_ROOT" && git pull
13+
else
14+
rm -rf "$PYENV_ROOT" && git clone --depth 1 https://github.com/yyuu/pyenv.git "$PYENV_ROOT"
15+
fi
16+
export PYPY_VERSION="4.0.1"
17+
"$PYENV_ROOT/bin/pyenv" install "pypy-$PYPY_VERSION"
18+
virtualenv --python="$PYENV_ROOT/versions/pypy-$PYPY_VERSION/bin/python" "$HOME/virtualenvs/pypy-$PYPY_VERSION"
19+
source "$HOME/virtualenvs/pypy-$PYPY_VERSION/bin/activate"
20+
fi
21+
622
language: python
723

824
matrix:

0 commit comments

Comments
 (0)
0