Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Archive only when all tests passed with Xcode 5 Bots?

I'm trying to do continuous deployment to HockeyApp when all tests in a test suite pass. I have set up an archive post-action that successfully uploads the app to HockeyApp, but the problem is this gets run whether the tests pass or not.

Is it possible to run the archive actions only when all tests have passed? Or is there a better way to do this?

like image 792
Joe Avatar asked Nov 20 '13 19:11

Joe


1 Answers

I just ran into this problem too. Here is the bot result plist location:

/Library/Server/Xcode/Data/BotRuns/Latest/output/xcodebuild_result.bundle/Info.plist

You will have to parse the info.plist file to make sure the TestsFailedCount is 0, but the following answer shows a way to parse the file using PlistBuddy and bash: Where do Xcode Bots put their results, so I can parse them?

like image 200
Schlank Avatar answered Oct 20 '22 14:10

Schlank