summaryrefslogtreecommitdiff
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
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.
-rw-r--r--platform/ios/bitrise.yml26
-rw-r--r--platform/macos/bitrise.yml36
2 files changed, 55 insertions, 7 deletions
diff --git a/platform/ios/bitrise.yml b/platform/ios/bitrise.yml
index d610869cb3..d8a9a4fcd0 100644
--- a/platform/ios/bitrise.yml
+++ b/platform/ios/bitrise.yml
@@ -23,7 +23,7 @@ workflows:
envman add --key SKIPCI --value false
fi
- script:
- title: Run build
+ title: Install Dependencies
run_if: '{{enveq "SKIPCI" "false"}}'
inputs:
- content: |-
@@ -32,12 +32,28 @@ workflows:
brew install cmake
brew tap mapbox/homebrew-ios-sim-3
brew install mapbox/homebrew-ios-sim-3/ios-sim
- gem install xcpretty --no-rdoc --no-ri
- gem install jazzy --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 ios
- make ios-test
+ make iproj
- is_debug: 'yes'
+ - xcode-test:
+ title: Run SDK Unit Tests
+ run_if: '{{enveq "SKIPCI" "false"}}'
+ inputs:
+ - project_path: platform/ios/ios.xcworkspace
+ - scheme: CI
+ - 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"}}'
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"}}'