From 55dd3d2cf53b3ec5b7d57b7461bdbcdf073a0875 Mon Sep 17 00:00:00 2001 From: Paul Ganssle Date: Thu, 3 Nov 2016 18:23:49 -0400 Subject: Tweak CI due to version inconsistencies and other issues. --- ci_tools/pypy_upgrade.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ci_tools/pypy_upgrade.sh (limited to 'ci_tools') diff --git a/ci_tools/pypy_upgrade.sh b/ci_tools/pypy_upgrade.sh new file mode 100644 index 0000000..e66c025 --- /dev/null +++ b/ci_tools/pypy_upgrade.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +# Need to install an upgraded version of pypy. +if [ -f "$PYENV_ROOT/bin/pyenv" ]; then + pushd "$PYENV_ROOT" && git pull && popd +else + rm -rf "$PYENV_ROOT" && git clone --depth 1 https://github.com/yyuu/pyenv.git "$PYENV_ROOT" +fi + +"$PYENV_ROOT/bin/pyenv" install --skip-existing "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" \ No newline at end of file -- cgit v1.2.3