mirror of
https://github.com/kean/Pulse.git
synced 2026-04-30 21:02:27 +00:00
28 lines
589 B
Bash
Executable File
28 lines
589 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -eo pipefail
|
|
|
|
scheme="Pulse"
|
|
|
|
while getopts "s:d:" opt; do
|
|
case $opt in
|
|
s) scheme=${OPTARG};;
|
|
d) destinations+=("$OPTARG");;
|
|
#...
|
|
esac
|
|
done
|
|
shift $((OPTIND -1))
|
|
|
|
echo "scheme = ${scheme}"
|
|
echo "destinations = ${destinations[@]}"
|
|
|
|
xcodebuild -version
|
|
|
|
xcodebuild build-for-testing -scheme "$scheme" -destination "${destinations[0]}" | xcpretty
|
|
|
|
for destination in "${destinations[@]}";
|
|
do
|
|
echo "\nRunning tests for destination: $destination"
|
|
xcodebuild test-without-building -scheme "$scheme" -destination "$destination" | xcpretty --test
|
|
done
|