Skip to content

Commit e0a4a5a

Browse files
committed
CI: Restore mask regression tests in maint/1.3.x
1 parent 1701632 commit e0a4a5a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.circleci/config.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,10 @@ jobs:
179179
command: |
180180
cd /tmp/src/niworkflows
181181
set +e
182-
test_masks="$( git log --format=oneline -n 1 $CIRCLE_SHA1 | grep -i -E '\[test[ _]?masks?\]' )$( echo $CIRCLE_BRANCH | grep -i -E '^masks?/' )"
182+
test_masks="$( git log --format=oneline -n 1 $CIRCLE_SHA1 | grep -i -E '\[test[ _]?masks?\]' )$( echo $CIRCLE_BRANCH | grep -i -E '^(masks?|maint)/|^master$' )"
183183
set -e
184-
if [[ "x${CIRCLE_TAG}" = "x" && "${CIRCLE_BRANCH}" != "master" && "x${test_masks}" = "x" ]]; then
185-
echo "Not a tag or master branch, not a ``masks?/`` branch, no ``[test_masks]`` label in commit message"
184+
if [[ "x${CIRCLE_TAG}" = "x" && "x${test_masks}" = "x" ]]; then
185+
echo "Not a tag, master or maint branch, not a ``masks?/`` branch, no ``[test_masks]`` label in commit message"
186186
echo "Skipping download of test data for mask regressions."
187187
circleci step halt
188188
fi
@@ -319,11 +319,11 @@ jobs:
319319
command: |
320320
cd /tmp/src/niworkflows
321321
set +e
322-
test_masks="$( git log --format=oneline -n 1 $CIRCLE_SHA1 | grep -i -E '\[test[ _]?masks?\]' )$( echo $CIRCLE_BRANCH | grep -i -E '^masks?/' )"
322+
test_masks="$( git log --format=oneline -n 1 $CIRCLE_SHA1 | grep -i -E '\[test[ _]?masks?\]' )$( echo $CIRCLE_BRANCH | grep -i -E '^(masks?|maint)/|^master$' )"
323323
set -e
324-
if [[ "x${CIRCLE_TAG}" = "x" && "${CIRCLE_BRANCH}" != "master" && "x${test_masks}" = "x" ]]; then
325-
echo "Not a tag or master branch, not a ``masks?/`` branch, no ``[test_masks]`` label in commit message"
326-
echo "Skipping download of test data for mask regressions."
324+
if [[ "x${CIRCLE_TAG}" = "x" && "x${test_masks}" = "x" ]]; then
325+
echo "Not a tag, master or maint branch, not a ``masks?/`` branch, no ``[test_masks]`` label in commit message"
326+
echo "Skipping mask regressions."
327327
circleci step halt
328328
fi
329329

0 commit comments

Comments
 (0)