From 19d56fb0a23a26b0bd543eae132550aed90010b7 Mon Sep 17 00:00:00 2001 From: AJ Lauer Barinov Date: Fri, 8 Sep 2023 11:22:19 -0700 Subject: [PATCH] ci: clean-up test script --- run-tests.sh | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/run-tests.sh b/run-tests.sh index c2661d5..a080928 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -1,23 +1,30 @@ #!/bin/bash + +readonly XCODE_VERSION=$(xcodebuild -version | grep Xcode | cut -d " " -f2) + +readonly SCHEME=MuxSpaces + +readonly TOP_DIR=$(pwd) + +readonly WORKSPACE_NAME=MUXSDKImaListener +readonly WORKSPACE_PATH=${TOP_DIR}/${WORKSPACE_NAME}.xcworkspace + set -euo pipefail brew install xcbeautify -# reset simulators +echo "▸ Using Xcode Version: ${XCODE}" + +echo "▸ Resetting Simulators" + xcrun -v simctl shutdown all xcrun -v simctl erase all -echo "test xcode version" -xcodebuild -version - pushd Example -#pod deintegrate && pod update -xcodebuild -workspace MUXSDKImaListener.xcworkspace \ - -scheme "MUXSDKImaListener-Example" \ - -destination 'platform=iOS Simulator,name=iPhone 14,OS=16.2' \ - test \ - | xcbeautify +pod deintegrate && pod install + +echo "▸ Executing Tests" xcodebuild -workspace MUXSDKImaListener.xcworkspace \ -scheme "DemoApp" \