summaryrefslogtreecommitdiff
path: root/platform/macos/bitrise.yml
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-09-21 14:09:27 -0700
committerJesse Bounds <jesse@rebounds.net>2016-09-28 09:44:19 -0700
commitb1518944a732138f5ed2eafc69fe794143a4af62 (patch)
tree03e744871d29cb1065431f4a2db5b9ed771afc55 /platform/macos/bitrise.yml
parent255325b44b732641b60014a0d2042fbe01948f7f (diff)
downloadqtlocation-mapboxgl-b1518944a732138f5ed2eafc69fe794143a4af62.tar.gz
[ios, macos] Rewrote CI scripts
Broke up the iOS and macOS Bitrise scripts into several steps each for more granular progress and failure reporting and to take advantage of better error reporting in the built-in Bitrise steps. Added a step to deploy Xcode test results and (in the event of a failure) raw xcodebuild output to Bitrise.io, with a handy link from the Bitrise UI.
Diffstat (limited to 'platform/macos/bitrise.yml')
-rw-r--r--platform/macos/bitrise.yml36
1 files changed, 34 insertions, 2 deletions
diff --git a/platform/macos/bitrise.yml b/platform/macos/bitrise.yml
index 3cfc9b7a51..f1226f8842 100644
--- a/platform/macos/bitrise.yml
+++ b/platform/macos/bitrise.yml
@@ -23,7 +23,7 @@ workflows:
envman add --key SKIPCI --value false
fi
- script:
- title: Run build script
+ title: Install Dependencies
run_if: '{{enveq "SKIPCI" "false"}}'
inputs:
- content: |-
@@ -31,11 +31,43 @@ workflows:
set -eu -o pipefail
brew install cmake
gem install xcpretty --no-rdoc --no-ri
+ - is_debug: 'yes'
+ - script:
+ title: Generate Workspace
+ run_if: '{{enveq "SKIPCI" "false"}}'
+ inputs:
+ - content: |-
+ #!/bin/bash
+ set -eu -o pipefail
+ export BUILDTYPE=Debug
+ make xproj
+ - is_debug: 'yes'
+ - script:
+ title: Run Core Tests
+ run_if: '{{enveq "SKIPCI" "false"}}'
+ inputs:
+ - content: |-
+ #!/bin/bash
+ set -eu -o pipefail
export BUILDTYPE=Debug
- make macos
make test
+ - is_debug: 'yes'
+ - script:
+ title: Run SDK Unit Tests
+ run_if: '{{enveq "SKIPCI" "false"}}'
+ inputs:
+ - content: |-
+ #!/bin/bash
+ set -eu -o pipefail
+ export BUILDTYPE=Debug
+ export XCPRETTY="| tee ${BITRISE_DEPLOY_DIR}/raw-xcodebuild-output.txt | xcpretty --color --report html --output ${BITRISE_DEPLOY_DIR}/xcode-test-results.html"
make macos-test
- is_debug: 'yes'
+ - deploy-to-bitrise-io:
+ title: Deploy to Bitrise.io
+ run_if: '{{enveq "SKIPCI" "false"}}'
+ inputs:
+ - notify_user_groups: none
- slack:
title: Post to Slack
run_if: '{{enveq "SKIPCI" "false"}}'