Skip to content

Commit ef41799

Browse files
committed
add circleci tests for --fs-reuse-base
1 parent 1d70209 commit ef41799

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.circleci/config.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ jobs:
241241
command: |
242242
mkdir -p /tmp/fslicense
243243
cd /tmp/fslicense
244-
echo "cHJpbnRmICJrcnp5c3p0b2YuZ29yZ29sZXdza2lAZ21haWwuY29tXG41MTcyXG4gKkN2dW12RVYzelRmZ1xuRlM1Si8yYzFhZ2c0RVxuIiA+IGxpY2Vuc2UudHh0Cg==" | base64 -d | sh
244+
echo "cHJpbnRmICJrcnp5c3p0b2YuZ29yZ29sZXdza2lAZ21haWwuY29tXG41MTcyXG4gKkN2dW12RVYzelRmZ1xuRlM1Si8yYzFhZ2c0RVxuIiA+IGxpY2Vuc2UudHh0Cg==" | base64 -d | sh
245245
- persist_to_workspace:
246246
root: /tmp
247247
paths:
@@ -540,6 +540,24 @@ jobs:
540540
- store_artifacts:
541541
path: /tmp/ds005/derivatives
542542
destination: fasttrack
543+
- run:
544+
name: Check fs-reuse-base using existing freesufer output
545+
no_output_timeout: 5m
546+
command: |
547+
bash /tmp/src/smriprep/.circleci/ds005_run.sh --fs-reuse-base
548+
- run:
549+
name: Clean working directory
550+
when: on_fail
551+
command: |
552+
rm -rf /tmp/ds005/work/smriprep_wf/fsdir_run_*/
553+
find /tmp/ds005/work \( -name "*.nii.gz" -or -name "*.nii" -or -name "*.gii" -or -name "*.h5" \) \
554+
-exec sh -c 'rm -f {}; touch {}' \;
555+
- store_artifacts:
556+
path: /tmp/ds005/work
557+
destination: fs_reuse_base
558+
- store_artifacts:
559+
path: /tmp/ds005/derivatives
560+
destination: fs_reuse_base
543561
ds054:
544562
<<: *machine_defaults
545563
environment:

0 commit comments

Comments
 (0)