Newer
Older
echo "\n\033[1;32m▶ Running package tests on macOS...\033[0m"
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=16.0,name=iPhone 14' test | ./xcbeautify
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=16.0,name=iPhone 14' test | ./xcbeautify
echo "\n\033[1;31m▶ Invalid option.\033[0m Usage:"
echo " run-tests.sh macos - Run package tests on macOS"
echo " run-tests.sh ios - Run package tests on iOS Simulator"
echo " run-tests.sh examples-ios - Run iOS examples tests"