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: