I am working on setting up CI for my iOS application and I am facing some issues.
In the bot's scheme, create a post build script that parses the test results.
The test results will be located here:
/Library/Server/Xcode/Data/BotRuns/Latest/output/xcodebuild_result.bundle/Info.plist
Once you verify that the tests pass in that plist, you can merge into master.
Then create a bot that only integrates when someone pushes to master. I believe editing the bot's schedule has an option for polling a repo for changes. Make sure the bot is created by an Xcode project that is currently on master.
The first bot would need to be created when Xcode is on the test branch you would create.