Commit ffe04e99 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

Merge branch 'rf/tmpdir' into 'master'

Work directory location

See merge request fsl/fsl-ci-rules!87
parents 51410d66 eec4b8d3
......@@ -19,7 +19,7 @@ import subprocess as sp
import yaml
__version__ = '0.16.2'
__version__ = '0.16.3'
"""Current version of the fsl-ci-rules."""
......
......@@ -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