SwiftGit2/script/xcodebuild.awk
Tom Booth c3b155cfd4 Switch cibuild to xcodebuild and xcpretty
`xctool` runs the tests as logic only whereas `xcodebuild` and XCode
run them as application tests. When tests are running logic only a lot
of the subsystems that would be available on the simulator are not
there, for example keychain and networking.

https://github.com/facebook/xctool/issues/269
https://github.com/AFNetworking/AFNetworking/pull/1707
https://github.com/facebook/xctool/issues/367
https://github.com/facebook/xctool/issues/553
2016-04-07 14:40:58 +01:00

24 lines
349 B
Awk

# Exit statuses:
#
# 0 - No errors found.
# 1 - Build or test failure. Errors will be logged automatically.
# 2 - Untestable target. Retry with the "build" action.
BEGIN {
status = 0;
}
{
print;
fflush(stdout);
}
/A build only device cannot be used to run this target/ {
status = 1
}
END {
fflush(stdout);
exit status;
}