Commit b42a72bf authored by ale's avatar ale
Browse files

Fix access to private testdata repository from CI environment

parent d6bfc609
Pipeline #15231 failed with stages
in 79 minutes and 8 seconds
......@@ -6,8 +6,13 @@ config_dir="$(realpath "${test_dir}/..")"
# Configuration, can be overridden from the environment.
FLOAT_REPO="${FLOAT_REPO:-https://git.autistici.org/ai3/float.git}"
FLOAT_BRANCH="${FLOAT_BRANCH:-master}"
#TESTDATA_REPO="${TESTDATA_REPO:-https://git.autistici.org/ai3/testdata.git}"
TESTDATA_REPO="${TESTDATA_REPO:-git@git.autistici.org:ai3/testdata.git}"
# Default to a different testdata URL (which is a private repository)
# depending on whether we're running under the CI or not.
if [ -n "${CI_JOB_TOKEN}" ]; then
TESTDATA_REPO="${TESTDATA_REPO:-https://gitlab-ci-token:${CI_JOB_TOKEN}@git.autistici.org/ai3/testdata.git}"
else
TESTDATA_REPO="${TESTDATA_REPO:-git@git.autistici.org:ai3/testdata.git}"
fi
TESTDATA_BRANCH="${TESTDATA_BRANCH:-master}"
usage() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment