@@ -179,10 +179,10 @@ jobs:
179
179
command : |
180
180
cd /tmp/src/niworkflows
181
181
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$ ' )"
183
183
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"
186
186
echo "Skipping download of test data for mask regressions."
187
187
circleci step halt
188
188
fi
@@ -319,11 +319,11 @@ jobs:
319
319
command : |
320
320
cd /tmp/src/niworkflows
321
321
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$ ' )"
323
323
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."
327
327
circleci step halt
328
328
fi
329
329
0 commit comments