-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'trunk' into task/22721-stats-traffic-improve-scrolling-…
…performance
- Loading branch information
Showing
1,126 changed files
with
119,151 additions
and
10,134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/bash -eu | ||
|
||
echo "--- :rubygems: Setting up Gems" | ||
install_gems | ||
|
||
echo "--- :cocoapods: Setting up Pods" | ||
install_cocoapods | ||
|
||
echo "--- :writing_hand: Copy Files" | ||
mkdir -pv ~/.configure/wordpress-ios/secrets | ||
cp -v fastlane/env/project.env-example ~/.configure/wordpress-ios/secrets/project.env | ||
|
||
echo "--- :closed_lock_with_key: Installing Secrets" | ||
bundle exec fastlane run configure_apply | ||
|
||
echo "--- :swift: Setting up Swift Packages" | ||
install_swiftpm_dependencies | ||
|
||
scheme=$1 | ||
echo "--- 🔬 Testing $scheme" | ||
set +e | ||
bundle exec fastlane test_pod "name:$scheme" | ||
TESTS_EXIT_STATUS=$? | ||
set -e | ||
|
||
if [[ $TESTS_EXIT_STATUS -ne 0 ]]; then | ||
# Keep the (otherwise collapsed) current "Testing" section open in Buildkite logs on error. See https://buildkite.com/docs/pipelines/managing-log-output#collapsing-output | ||
echo "^^^ +++" | ||
echo "Unit Tests failed!" | ||
fi | ||
|
||
echo "--- 📦 Zipping test results" | ||
cd build/results/ && zip -rq "$scheme.xcresult.zip" "$scheme.xcresult" && cd - | ||
|
||
echo "--- 🚦 Report Tests Status" | ||
if [[ $TESTS_EXIT_STATUS -eq 0 ]]; then | ||
echo "Unit Tests seems to have passed (exit code 0). All good 👍" | ||
else | ||
echo "The Unit Tests, ran during the '🔬 Testing' step above, have failed." | ||
echo "For more details about the failed tests, check the Buildkite annotation, the logs under the '🔬 Testing' section and the \`.xcresult\` and test reports in Buildkite artifacts." | ||
fi | ||
|
||
if [[ $BUILDKITE_BRANCH == trunk ]] || [[ $BUILDKITE_BRANCH == release/* ]]; then | ||
annotate_test_failures "build/results/$scheme.xml" --slack "build-and-ship" | ||
else | ||
annotate_test_failures "build/results/$scheme.xml" | ||
fi | ||
|
||
exit $TESTS_EXIT_STATUS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.