From 588fc50e9f4e8b290243cb4b51c0a08be619938a Mon Sep 17 00:00:00 2001 From: Ari Lazier Date: Fri, 11 Nov 2016 11:24:35 -0800 Subject: [PATCH] try to build then test --- scripts/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index e6c607b2..87b4c693 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -88,12 +88,12 @@ xctest() { local dest="$(xcrun simctl list devices | grep -v unavailable | grep -m 1 -o '[0-9A-F\-]\{36\}')" if [ -n "$XCPRETTY" ]; then mkdir -p build - xcodebuild -scheme "$1" -configuration "$CONFIGURATION" -sdk iphonesimulator -destination id="$dest" test | tee build/build.log | xcpretty -c --no-utf --report junit --output build/reports/junit.xml || { + xcodebuild -scheme "$1" -configuration "$CONFIGURATION" -sdk iphonesimulator -destination id="$dest" build test | tee build/build.log | xcpretty -c --no-utf --report junit --output build/reports/junit.xml || { echo "The raw xcodebuild output is available in build/build.log" exit 1 } else - xcodebuild -scheme "$1" -configuration "$CONFIGURATION" -sdk iphonesimulator -destination id="$dest" test + xcodebuild -scheme "$1" -configuration "$CONFIGURATION" -sdk iphonesimulator -destination id="$dest" build test fi }