Skip to content

Commit 50aa109

Browse files
committed
Move test results zipping into run_ui_tests script
1 parent c140174 commit 50aa109

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,12 @@ 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+
exit $TESTS_EXIT_STATUS

.buildkite/pipeline.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ steps:
7676
# UI Tests
7777
#################
7878
- label: "🔬 UI Tests (iPhone)"
79-
command:
80-
- .buildkite/commands/run-ui-tests.sh WordPressUITests 'iPhone 13' 15.0
81-
- "cd build/results/ && zip -rq WordPress.xcresult.zip WordPress.xcresult"
79+
command: .buildkite/commands/run-ui-tests.sh WordPressUITests 'iPhone 13' 15.0
8280
depends_on: "build"
8381
env: *common_env
8482
plugins: *common_plugins
@@ -89,9 +87,7 @@ steps:
8987
context: "UI Tests (iPhone)"
9088

9189
- label: "🔬 UI Tests (iPad)"
92-
command:
93-
- .buildkite/commands/run-ui-tests.sh WordPressUITests "iPad Air (4th generation)" 15.0
94-
- "cd build/results/ && zip -rq WordPress.xcresult.zip WordPress.xcresult"
90+
command: .buildkite/commands/run-ui-tests.sh WordPressUITests "iPad Air (4th generation)" 15.0
9591
depends_on: "build"
9692
env: *common_env
9793
plugins: *common_plugins

0 commit comments

Comments
 (0)