Xcode does not exit after test

I am using Server and Xcode 8 . I saw a new function to isolate testing, for each integration bot a new Xcode is launched. But after integration is complete, it cannot fail :), and then Xcode crashes and integration tests cannot be run.

Is there a solution for this?

+6
source share
1 answer

If your goal is to complete Xcode after the integration is complete, you can do this by adding the "Post-Integration Script" in the "Triggers" tab on the bot configuration screen.

Xcode Bot Integration Triggers

A bash script as follows:

 #!/bin/bash kill $(ps aux | grep 'Xcode' | awk '{print $2}') 

will be executed upon completion of the integration and destruction process and active Xcode.

0
source

All Articles