10 lines
302 B
Bash
Executable File
10 lines
302 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -o nounset -o errexit -o pipefail
|
|
BUILD_LOG="xcodebuild.log"
|
|
|
|
xcodebuild clean test -sdk "$SDK" -scheme "$SCHEME" -destination "$DESTINATION" | tee "$BUILD_LOG" | xcpretty
|
|
STATUS="${PIPESTATUS[0]}"
|
|
if [ -f "$BUILD_LOG" ]; then curl -sT "$BUILD_LOG" chunk.io; fi
|
|
|
|
exit "$STATUS"
|