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?
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?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With