From f5bb746f6a3e68268c23125ca7acdf549a9cacda Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Mon, 2 Nov 2015 14:39:50 -0800 Subject: fixes #2843: support for skipping CI with commit note --- bitrise.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/bitrise.yml b/bitrise.yml index 07beba8dc7..90b3f4f258 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -16,9 +16,24 @@ trigger_map: workflows: primary: steps: - - select-xcode-version@2.2.0: {} + - script@1.1.0: + title: Check for skipping CI + inputs: + - content: |- + #!/bin/bash + + if [[ -n "$(echo $GIT_CLONE_COMMIT_MESSAGE_SUBJECT | sed -n '/\[skip ci\]/p')" || + -n "$(echo $GIT_CLONE_COMMIT_MESSAGE_SUBJECT | sed -n '/\[ci skip\]/p')" ]]; then + envman add --key SKIPCI --value true + else + envman add --key SKIPCI --value false + fi + - select-xcode-version@2.2.0: + title: Select Xcode version + run_if: '{{enveq "SKIPCI" "false"}}' - script@1.1.0: title: Install Homebrew dependencies + run_if: '{{enveq "SKIPCI" "false"}}' inputs: - content: |- #!/bin/bash @@ -29,6 +44,7 @@ workflows: brew link --force appledoc22 - script@1.1.0: title: Run make ipackage-sim + run_if: '{{enveq "SKIPCI" "false"}}' inputs: - content: |- #!/bin/bash @@ -36,7 +52,8 @@ workflows: make ipackage-sim - is_debug: 'yes' - xcode-test@1.6.0: - title: 'Xcode: Unit Test' + title: Run Xcode Tests + run_if: '{{enveq "SKIPCI" "false"}}' inputs: - project_path: "./test/ios/ios-tests.xcodeproj" - scheme: Mapbox GL Tests @@ -44,6 +61,8 @@ workflows: opts: is_expand: false - slack@2.1.0: + title: Post to Slack + run_if: '{{enveq "SKIPCI" "false"}}' inputs: - webhook_url: "$SLACK_HOOK_URL" - channel: "#gl" -- cgit v1.2.1