Skip to content
Snippets Groups Projects
Commit a03e7dca authored by Tom Robinson's avatar Tom Robinson Committed by GitHub
Browse files

Merge pull request #3546 from metabase/ci-branch-config

Enable [ci all] on release-* branches + configuration with CIRCLE_BRANCH_REGEX
parents 237eb1fa 8cdf46b8
No related merge requests found
......@@ -74,8 +74,12 @@ lein-test() {
lein test
}
if [ -z ${CIRCLE_BRANCH_REGEX+x} ]; then
CIRCLE_BRANCH_REGEX='^master|release-.+$'
fi
is_enabled() {
[[ "$CIRCLE_BRANCH" == "master" ]] ||
(echo "$CIRCLE_BRANCH" | grep -qE "$CIRCLE_BRANCH_REGEX") ||
[[ "$CIRCLE_COMMIT_MESSAGE" == *"[ci $1]"* ]] ||
[[ "$CIRCLE_COMMIT_MESSAGE" == *"[ci all]"* ]]
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment