Commit 9f0a34cf authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

CI: Putting config dir in pwd causes it to be included in built conda

packages, which is bad. Back to using $TMPDIR, or /tmp/ if $TMPDIR is not set
parent 51410d66
......@@ -33,7 +33,11 @@
# the same machine (e.g. macOS builds).
# We write its location to a file, so the
# after_script can delete it
- FSL_CI_CONFIG_DIR=$(pwd)/fsl_ci_config_${CI_JOB_ID}
- if [ -z "$TMPDIR" ]; then
FSL_CI_CONFIG_DIR=/tmp/fsl_ci_config_${CI_JOB_ID};
else
FSL_CI_CONFIG_DIR=$TMPDIR/fsl_ci_config_${CI_JOB_ID};
fi
- mkdir ${FSL_CI_CONFIG_DIR}
- echo ${FSL_CI_CONFIG_DIR} > ./.fsl-ci-config-dir
......@@ -93,3 +97,4 @@
after_script:
- FSL_CI_CONFIG_DIR=$(cat ./.fsl-ci-config-dir)
- rm -r ${FSL_CI_CONFIG_DIR}
- rm ./.fsl-ci-config-dir
Supports Markdown
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