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 7
7
- 3.5
8
8
- pypy
9
9
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
10
24
install :
11
25
- 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
12
26
- pip install --cache-dir $HOME/.cache/pip pytest>=2.7.3 --upgrade
You can’t perform that action at this time.
0 commit comments