Skip to content

Commit

Permalink
Trying to fix pypy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Sep 1, 2017
1 parent 2a73e5e commit bdc7189
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions .travis.yml
Expand Up @@ -6,19 +6,8 @@ python:
- 3.5
- pypy
before_install:
- |
if [ "$TRAVIS_PYTHON_VERSION" = "pypy" ]; then
export PYENV_ROOT="$HOME/.pyenv"
if [ -f "$PYENV_ROOT/bin/pyenv" ]; then
cd "$PYENV_ROOT" && git pull
else
rm -rf "$PYENV_ROOT" && git clone --depth 1 https://github.com/yyuu/pyenv.git "$PYENV_ROOT"
fi
export PYPY_VERSION="4.0.1"
"$PYENV_ROOT/bin/pyenv" install "pypy-$PYPY_VERSION"
virtualenv --python="$PYENV_ROOT/versions/pypy-$PYPY_VERSION/bin/python" "$HOME/virtualenvs/pypy-$PYPY_VERSION"
source "$HOME/virtualenvs/pypy-$PYPY_VERSION/bin/activate"
fi
- "if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then deactivate && wget https://bitbucket.org/squeaky/portable-pypy/downloads/pypy-5.8-1-linux_x86_64-portable.tar.bz2 && tar -jxvf pypy-5.8-1-linux_x86_64-portable.tar.bz2 && echo 'Setting up aliases...' && export PATH=$HOME/pypy-5.8-1-linux_x86_64-portable/bin/:$PATH && ln -s ~/pypy-5.8-1-linux_x86_64-portable/bin/pypy ~/bin/python && echo 'Setting up pip...' && pypy-5.8-1-linux_x86_64-portable/bin/pypy -m ensurepip ; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == 'pypy3' ]]; then deactivate && wget https://bitbucket.org/squeaky/portable-pypy/downloads/pypy3.5-5.8-1-beta-linux_x86_64-portable.tar.bz2 && tar -jxvf pypy3.5-5.8-1-beta-linux_x86_64-portable.tar.bz2 && echo 'Setting up aliases...' && export PATH=$HOME/pypy3.5-5.8-1-beta-linux_x86_64-portable/bin/:$PATH && ln -s ~/pypy3.5-5.8-1-beta-linux_x86_64-portable/bin/pypy3.3 ~/bin/python && echo 'Setting up pip...' && pypy3.5-5.8-1-beta-linux_x86_64-portable/bin/pypy -m ensurepip && ln -s ~/pypy3.5-5.8-1-beta-linux_x86_64-portable/bin/pip3.3 ~/bin/pip ; fi"
install:
- |
if [ "$TEST_TYPE" = build ]; then
Expand Down

0 comments on commit bdc7189

Please sign in to comment.