From bdc71892ee552cc4707f283d094126868b37e456 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Fri, 1 Sep 2017 00:53:04 -0700 Subject: [PATCH] Trying to fix pypy tests --- .travis.yml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index 13976d4cf..8b5ca30e2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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