File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,19 @@ before_install:
2828 - pip install codecov
2929
3030install :
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
You can’t perform that action at this time.
0 commit comments