-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add automated check for each of the example applications
- Loading branch information
1 parent
79de7d3
commit e673c80
Showing
2 changed files
with
34 additions
and
4 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
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,31 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
if ! command -v xcbeautify &> /dev/null | ||
then | ||
echo -e "\033[1;31m ERROR: xcbeautify could not be found please install it... \033[0m" | ||
exit 1 | ||
fi | ||
|
||
echo "▸ Current Xcode: $(xcode-select -p)" | ||
|
||
readonly XCODE=$(xcodebuild -version | grep Xcode | cut -d " " -f2) | ||
|
||
echo "▸ Using Xcode Version: ${XCODE}" | ||
|
||
echo "▸ Available Xcode SDKs" | ||
xcodebuild -showsdks | ||
|
||
echo "▸ Running DemoApp tests" | ||
|
||
xcodebuild clean test \ | ||
-scheme DemoApp \ | ||
-workspace Example/MUXSDKImaListener.xcworkspace \ | ||
-destination 'platform=iOS Simulator,OS=17.2,name=iPhone 15' | xcbeautify | ||
|
||
echo "▸ Running MUXSDKIMATVOSExample tests" | ||
|
||
xcodebuild clean test \ | ||
-scheme MUXSDKIMATVOSExample \ | ||
-workspace Example/MUXSDKImaListener.xcworkspace \ | ||
-destination 'platform=tvOS Simulator,OS=17.2,name=Apple TV' | xcbeautify |