Skip to content

Commit

Permalink
CI: updated list of outputs and uncommented difference checks
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastientourbier committed Nov 4, 2020
1 parent aef9b6b commit dcfdc48
Show file tree
Hide file tree
Showing 4 changed files with 486 additions and 484 deletions.
10 changes: 6 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ jobs:
command: |
# Get all files in derivatives except the _*.json interface hash generated by nipype (find) / remove the full path of the derivatives (sed) / sort the files and write it to a text file
sudo find /tmp/src/mialsuperresolutiontoolkit/data/derivatives -path */figures -prune -o -not -name "_*.json" -type f -print | sed s+/tmp/src/mialsuperresolutiontoolkit/data/derivatives/++ | sort > /tmp/src/mialsuperresolutiontoolkit/data/test/test-01_outputs.out
# diff /home/circleci/src/mialsuperresolutiontoolkit/.circleci/test-01_outputs.txt /tmp/src/mialsuperresolutiontoolkit/data/test/test-01_outputs.out
# exit $?
diff /home/circleci/src/mialsuperresolutiontoolkit/.circleci/test-01_outputs.txt /tmp/src/mialsuperresolutiontoolkit/data/test/test-01_outputs.out
exit $?
- run:
name: Test-02 - Run super-resolution pipelines on sample testing dataset with automatic brain extraction
no_output_timeout: 6h
Expand All @@ -171,6 +171,8 @@ jobs:
ls -la /tmp/src/mialsuperresolutiontoolkit/data/code
ls -la /tmp/src/mialsuperresolutiontoolkit/data/derivatives
rm -R /tmp/src/mialsuperresolutiontoolkit/data/derivatives/*
#Execute BIDS App
docker run -it --rm --entrypoint /app/run_srr_coverage.sh \
-v /tmp/src/mialsuperresolutiontoolkit/data:/bids_dir \
Expand All @@ -189,8 +191,8 @@ jobs:
command: |
# Get all files in derivatives except the _*.json interface hash generated by nipype (find) / remove the full path of the derivatives (sed) / sort the files and write it to a text file
sudo find /tmp/src/mialsuperresolutiontoolkit/data/derivatives -path */figures -prune -o -not -name "_*.json" -type f -print | sed s+/tmp/src/mialsuperresolutiontoolkit/data/derivatives/++ | sort > /tmp/src/mialsuperresolutiontoolkit/data/test/test-02_outputs.out
# diff /home/circleci/src/mialsuperresolutiontoolkit/.circleci/test-02_outputs.txt /tmp/src/mialsuperresolutiontoolkit/data/test/test-02_outputs.out
# exit $?
diff /home/circleci/src/mialsuperresolutiontoolkit/.circleci/test-02_outputs.txt /tmp/src/mialsuperresolutiontoolkit/data/test/test-02_outputs.out
exit $?
- run:
name: Clean working directory
when: always
Expand Down
Loading

0 comments on commit dcfdc48

Please sign in to comment.