From 19571ee6977d524defd114d9b971412cefa4db3c Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Wed, 6 Mar 2019 14:18:10 +1030 Subject: [PATCH] CI: Atlas data location can be customised with env var --- .ci/test_template.sh | 2 +- .gitlab-ci.yml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.ci/test_template.sh b/.ci/test_template.sh index dd3e00226..00bc034b1 100644 --- a/.ci/test_template.sh +++ b/.ci/test_template.sh @@ -28,7 +28,7 @@ if [ "$TEST_STYLE"x != "x" ]; then exit 0; fi # tests, and need $FSLDIR to be defined export FSLDIR=/fsl/ mkdir -p $FSLDIR/data/ -rsync -rv "fsldownload:data/atlases/" "$FSLDIR/data/atlases/" +rsync -rv "fsldownload:$FSL_ATLAS_DIR" "$FSLDIR/data/atlases/" # Finally, run the damned tests. TEST_OPTS="--cov-report= --cov-append" diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 792aee38e..c07fcec57 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -72,6 +72,9 @@ stages: # - FSL_HOST: - Username@host to download FSL data from # (e.g. "paulmc@jalapeno.fmrib.ox.ac.uk") # +# - FSL_ATLAS_DIR: - Location of the FSL atlas data on +# FSL_HOST. +# # - TWINE_USERNAME: - Username to use when uploading to pypi # # - TWINE_PASSWORD: - Password to use when uploading to pypi -- GitLab