Skip to content

Commit c8d6d62

Browse files
authored
Merge pull request #17884 from wordpress-mobile/ui-tests-buildkite-save-artifact
Save xcode results as artifact in Buildkite
2 parents 443de8e + 2f22e74 commit c8d6d62

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

.buildkite/commands/run-ui-tests.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,13 @@ install_cocoapods
2727
echo "--- 🧪 Testing"
2828
xcrun simctl list >> /dev/null
2929
rake mocks &
30+
set +e
3031
bundle exec fastlane test_without_building name:"$TEST_NAME" try_count:3 device:"$DEVICE" ios_version:"$IOS_VERSION"
32+
TESTS_EXIT_STATUS=$?
33+
set -e
34+
35+
echo "--- 📦 Zipping test results"
36+
cd build/results/ && zip -rq WordPress.xcresult.zip WordPress.xcresult
37+
38+
echo "--- 🚦 Report Tests Exit Status"
39+
exit $TESTS_EXIT_STATUS

.buildkite/pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ steps:
8181
env: *common_env
8282
plugins: *common_plugins
8383
artifact_paths:
84-
- "build/results/"
84+
- "build/results/*"
8585
notify:
8686
- github_commit_status:
8787
context: "UI Tests (iPhone)"
@@ -92,7 +92,7 @@ steps:
9292
env: *common_env
9393
plugins: *common_plugins
9494
artifact_paths:
95-
- "build/results/"
95+
- "build/results/*"
9696
notify:
9797
- github_commit_status:
9898
context: "UI Tests (iPad)"

0 commit comments

Comments
 (0)