Skip to content

Instantly share code, notes, and snippets.

@depth42
Created November 11, 2013 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save depth42/7419292 to your computer and use it in GitHub Desktop.
Save depth42/7419292 to your computer and use it in GitHub Desktop.
My former Jenkins build script for performing xcode tests using xctool
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