Created
November 11, 2013 19:54
-
-
Save depth42/7419292 to your computer and use it in GitHub Desktop.
My former Jenkins build script for performing xcode tests using xctool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -f ${WORKSPACE}/test-report.xml | |
rm -rf /Users/jenkins/Library/Developer/Xcode/DerivedData | |
rm -rf ${WORKSPACE}/Build/Products | |
nice -n 20 /Users/jenkins/xctool/xctool -reporter pretty -reporter junit:${WORKSPACE}/test-report.xml -workspace MyWorkspace.xcworkspace -scheme MyScheme -configuration Debug SYMROOT=${WORKSPACE}/Build/Products test OTHER_CFLAGS='$(inherited) -Qunused-arguments -Werror' | |
# Note the -Qunused-arguments is needed because xcodebuild adds unused compiler arguments about which clang complains a lot. Together with -Werror this results in failed builds. So we have to silence this kind of warning. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment