File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,20 @@ matrix:
16
16
env : TOXENV=py36
17
17
18
18
install :
19
+ - |
20
+ if [ "$TOXENV" = "pypy" ]; then
21
+ export PYENV_ROOT="$HOME/.pyenv"
22
+ if [ -f "$PYENV_ROOT/bin/pyenv" ]; then
23
+ pushd "$PYENV_ROOT" && git pull && popd
24
+ else
25
+ rm -rf "$PYENV_ROOT" && git clone --depth 1 https://github.com/yyuu/pyenv.git "$PYENV_ROOT"
26
+ fi
27
+ # get latest portable PyPy from pyenv directly (thanks to natural version sort option -V)
28
+ export PYPY_VERSION=`"$PYENV_ROOT/bin/pyenv" install --list |grep -o -E 'pypy2.7-portable-[0-9][\.0-9]*$' |sort -V |tail -1`
29
+ "$PYENV_ROOT/bin/pyenv" install --skip-existing "$PYPY_VERSION"
30
+ virtualenv --python="$PYENV_ROOT/versions/$PYPY_VERSION/bin/python" "$HOME/virtualenvs/$PYPY_VERSION"
31
+ source "$HOME/virtualenvs/$PYPY_VERSION/bin/activate"
32
+ fi
19
33
- pip install -U tox twine wheel codecov
20
34
script : tox
21
35
after_success :
You can’t perform that action at this time.
0 commit comments