From ef417998e6089b5e831ee46ca11b8ffddb0ec188 Mon Sep 17 00:00:00 2001 From: bpinsard Date: Fri, 20 Oct 2023 16:39:38 -0400 Subject: [PATCH] add circleci tests for --fs-reuse-base --- .circleci/config.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 002a6a2af8..1df69bfb8d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -241,7 +241,7 @@ jobs: command: | mkdir -p /tmp/fslicense cd /tmp/fslicense - echo "cHJpbnRmICJrcnp5c3p0b2YuZ29yZ29sZXdza2lAZ21haWwuY29tXG41MTcyXG4gKkN2dW12RVYzelRmZ1xuRlM1Si8yYzFhZ2c0RVxuIiA+IGxpY2Vuc2UudHh0Cg==" | base64 -d | sh + echo "cHJpbnRmICJrcnp5c3p0b2YuZ29yZ29sZXdza2lAZ21haWwuY29tXG41MTcyXG4gKkN2dW12RVYzelRmZ1xuRlM1Si8yYzFhZ2c0RVxuIiA+IGxpY2Vuc2UudHh0Cg==" | base64 -d | sh - persist_to_workspace: root: /tmp paths: @@ -540,6 +540,24 @@ jobs: - store_artifacts: path: /tmp/ds005/derivatives destination: fasttrack + - run: + name: Check fs-reuse-base using existing freesufer output + no_output_timeout: 5m + command: | + bash /tmp/src/smriprep/.circleci/ds005_run.sh --fs-reuse-base + - run: + name: Clean working directory + when: on_fail + command: | + rm -rf /tmp/ds005/work/smriprep_wf/fsdir_run_*/ + find /tmp/ds005/work \( -name "*.nii.gz" -or -name "*.nii" -or -name "*.gii" -or -name "*.h5" \) \ + -exec sh -c 'rm -f {}; touch {}' \; + - store_artifacts: + path: /tmp/ds005/work + destination: fs_reuse_base + - store_artifacts: + path: /tmp/ds005/derivatives + destination: fs_reuse_base ds054: <<: *machine_defaults environment: