Skip to content
Snippets Groups Projects
Commit b6bc7c70 authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Update run-tests.sh

parent b8df9506
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!46Update XXMessenger example
#!/bin/sh
set -e
echo "\n\033[1;32m▶ Running package tests on iOS Simulator...\033[0m"
set -o pipefail && xcodebuild -scheme 'elixxir-dapps-sdk-swift-Package' -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=15.5,name=iPhone 13' test | ./xcbeautify
if [ ! -n "$1" ]; then
echo "\n\033[1;32m▶ Running XXMessenger example tests on iOS Simulator...\033[0m"
set -o pipefail && xcodebuild -workspace 'Examples/xx-messenger/XXMessenger.xcworkspace' -scheme 'XXMessenger' -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=15.5,name=iPhone 13' test | ./xcbeautify
echo "\n\033[1;32m▶ Running package tests on iOS Simulator...\033[0m"
set -o pipefail && xcodebuild -scheme 'elixxir-dapps-sdk-swift-Package' -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=15.5,name=iPhone 13' test | ./xcbeautify
elif [ "$1" = "examples" ]; then
echo "\n\033[1;32m▶ Running XXMessenger example tests on iOS Simulator...\033[0m"
set -o pipefail && xcodebuild -workspace 'Examples/xx-messenger/XXMessenger.xcworkspace' -scheme 'XXMessenger' -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=15.5,name=iPhone 13' test | ./xcbeautify
else
echo "Invalid option. Usage:"
echo " run-tests.sh - Run package tests"
echo " run-tests.sh examples - Run examples tests"
exit 1
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment