Skip to content

Commit 7d424e7

Browse files
committed
Merge pull request #65 from graphql-python/features/pypy4. Fixes #39
Use pypy4 in travis tests.
2 parents 954879d + 4de7e69 commit 7d424e7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,20 @@ python:
77
- 3.5
88
- pypy
99
cache: pip
10+
before_install:
11+
- |
12+
if [ "$TRAVIS_PYTHON_VERSION" = "pypy" ]; then
13+
export PYENV_ROOT="$HOME/.pyenv"
14+
if [ -f "$PYENV_ROOT/bin/pyenv" ]; then
15+
cd "$PYENV_ROOT" && git pull
16+
else
17+
rm -rf "$PYENV_ROOT" && git clone --depth 1 https://github.com/yyuu/pyenv.git "$PYENV_ROOT"
18+
fi
19+
export PYPY_VERSION="4.0.1"
20+
"$PYENV_ROOT/bin/pyenv" install "pypy-$PYPY_VERSION"
21+
virtualenv --python="$PYENV_ROOT/versions/pypy-$PYPY_VERSION/bin/python" "$HOME/virtualenvs/pypy-$PYPY_VERSION"
22+
source "$HOME/virtualenvs/pypy-$PYPY_VERSION/bin/activate"
23+
fi
1024
install:
1125
- pip install --cache-dir $HOME/.cache/pip pytest-cov pytest-mock coveralls flake8 isort==3.9.6 gevent==1.1b5 six>=1.10.0 promise>=0.4.0
1226
- pip install --cache-dir $HOME/.cache/pip pytest>=2.7.3 --upgrade

0 commit comments

Comments
 (0)