Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you use CruiseControl to build Cocoa/Objective-C projects?

Has anyone ever set up Cruise Control to build an OS X Cocoa/Objective-C project?

If so, is there a preferred flavor of CruiseControl (CruiseControl.rb or just regular CruiseControl) that would be easier to do this with.

I currently have a Ruby rake file that has steps for doing building and running tests, and wanted to automate this process after doing a checkin.

Also, does CruiseControl have support for git? I couldn't find anything on the website for this.

like image 501
Nick Haddad Avatar asked Aug 27 '08 16:08

Nick Haddad


1 Answers

Yes, you just run xcode builds via the command line (xcodebuild) which makes it simple to target from CC via an ant <exec>. I've been using just regular CC, not the ruby version and it works fine. Here's a barebones example:

<project name="cocoathing" default="build">
  <target name="build">
    <exec executable="xcodebuild" dir="CocoaThing" failonerror="true">
      <arg line="-target CocoaThing -buildstyle Deployment build" />
    </exec>
  </target>
</project>

More info on xcodebuild

And there does appear to be a standard git object here, but I don't use git so I can't tell you much more than that!

like image 145
Chris Blackwell Avatar answered Sep 30 '22 04:09

Chris Blackwell