From 7b9b7c526e30cdab41c2230722d54beff765c22b Mon Sep 17 00:00:00 2001 From: Sebastien Tourbier Date: Sat, 13 Jun 2020 15:38:42 +0200 Subject: [PATCH] CI: enabled comparison of lists of outputs --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6f6386e4a..97e7026fd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -145,8 +145,8 @@ jobs: mkdir -p /tmp/src/mialsuperresolutiontoolkit/data/test # 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/outputs.out - # diff /home/circleci/src/mialsuperresolutiontoolkit/.circleci/test_outputs.txt /tmp/src/mialsuperresolutiontoolkit/data/test/outputs.out - # exit $? + diff /home/circleci/src/mialsuperresolutiontoolkit/.circleci/test_outputs.txt /tmp/src/mialsuperresolutiontoolkit/data/test/outputs.out + exit $? - run: name: Clean working directory when: always