Skip to content
Snippets Groups Projects

Draft: Add macOS support

Closed Dariusz Rybicki requested to merge dev/macos-support into development
1 file
+ 17
4
Compare changes
  • Side-by-side
  • Inline
+ 17
4
#!/bin/sh
#!/bin/sh
set -e
set -e
echo "\n\033[1;32m▶ Running tests on macOS...\033[0m"
if [ "$1" = "ios" ]; then
set -o pipefail && swift test 2>&1 | ./xcbeautify
echo "\n\033[1;32m▶ Running tests on iOS Simulator...\033[0m"
echo "\n\033[1;32m▶ Running 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
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" = "macos" ]; then
 
 
echo "\n\033[1;32m▶ Running tests on macOS...\033[0m"
 
set -o pipefail && swift test 2>&1 | ./xcbeautify
 
 
else
 
 
echo "Invalid option. Usage:"
 
echo " run-tests.sh ios - Run tests on iOS Simulator"
 
echo " run-tests.sh macos - Run tests on macOS"
 
exit 1
 
 
fi
Loading