aboutsummaryrefslogtreecommitdiff
path: root/ci_tools
diff options
context:
space:
mode:
authorPaul Ganssle <paul@ganssle.io>2016-11-03 18:23:49 -0400
committerPaul Ganssle <paul@ganssle.io>2016-11-03 18:33:55 -0400
commit55dd3d2cf53b3ec5b7d57b7461bdbcdf073a0875 (patch)
treeb75d1e427b42222d2702a647ce5125ec1cda379f /ci_tools
parent1ad8829040c2ee63eab37a914d40a2f09cd6b563 (diff)
downloaddateutil-55dd3d2cf53b3ec5b7d57b7461bdbcdf073a0875.tar.gz
Tweak CI due to version inconsistencies and other issues.
Diffstat (limited to 'ci_tools')
-rw-r--r--ci_tools/pypy_upgrade.sh11
1 files changed, 11 insertions, 0 deletions
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