Skip to content

Commit

Permalink
CI: Disable CircleCI globally with [skipcircle]
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Oct 10, 2024
1 parent 2d2c386 commit c28707c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ _check_skip_job: &check_skip_job
cd /tmp/src/fmriprep
COMMIT_MSG="$(git show -s --format=%s)"
DOCBUILD="$(echo ${COMMIT_MSG} | grep -i -E '^docs?(\(\w+\))?:')"
SKIP_ALL="$(echo ${COMMIT_MSG} | grep -i -E '\[skipcircle\]')"
SKIP_PYTEST="$(echo ${COMMIT_MSG} | grep -i -E '\[skip[ _]?tests\]')"
SKIP_DS005="$(echo ${COMMIT_MSG} | grep -i -E '\[skip[ _]?ds005\]' )"
SKIP_DS054="$(echo ${COMMIT_MSG} | grep -i -E '\[skip[ _]?ds054\]' )"
Expand All @@ -62,6 +63,9 @@ _check_skip_job: &check_skip_job
elif [[ -n "$DOCSBUILD" ]]; then # always try to skip docs builds
echo "Only docs build"
circleci step halt
elif [ -n "$SKIP_ALL" ]; then
echo "Skipping all!"
circleci step halt
elif [ -n "$CHECK_PYTEST" -a -n "$SKIP_PYTEST" ]; then
echo "Skipping pytest"
circleci step halt
Expand Down

0 comments on commit c28707c

Please sign in to comment.