summaryrefslogtreecommitdiff
path: root/.gitlab-ci/set_env.sh
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci/set_env.sh')
-rwxr-xr-x.gitlab-ci/set_env.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/.gitlab-ci/set_env.sh b/.gitlab-ci/set_env.sh
new file mode 100755
index 0000000..c6671c8
--- /dev/null
+++ b/.gitlab-ci/set_env.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+export PYENV_VERSION
+PYENV_VERSION="$(pyenv latest "${PYTHON_VERSION:-3}")"
+exec "$@"