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

Update CI scripts

parent 00802f4f
No related branches found
No related tags found
1 merge request!45Draft: Add macOS support
......@@ -6,9 +6,4 @@ tests:
tags:
- ios
script:
- echo -e "section_start:`date +%s`:test_macos\r\e[0KRun tests on macOS"
- ./run-tests.sh macos
- echo -e "section_end:`date +%s`:test_macos\r\e[0K"
- echo -e "section_start:`date +%s`:test_ios\r\e[0KRun tests on iOS Simulator"
- ./run-tests.sh ios
- echo -e "section_end:`date +%s`:test_ios\r\e[0K"
- ./run-tests.sh
#!/bin/sh
set -e
if [ "$1" = "ios" ]; then
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
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
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
echo "\n\033[1;32m▶ Running tests on macOS...\033[0m"
set -o pipefail && swift test 2>&1 | ./xcbeautify
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