Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

RubyMotion Support Example

keyvanfatehi edited this page Jun 9, 2012 · 2 revisions

If you use RubyMotion (v1.9 at the time of this writing), it will work with OctopusCI, with a special gem:

Install 'motion-specwrap'

Create a working job

This works great for me. It switches gemsets, bundle installs, and runs the specs properly. The output is nice and colorful and available in the job "output" area of the octopusci job listing.

class MotionRSpecBuildLocal < Octopusci::Job
  def self.run(job_rec)
    context "RSpec Tests (commit)" do
      run_shell_cmd!("STAGE=#{job_rec['stage']} pwd && source .rvmrc && bundle install && rvm info | head -n2 && bundle exec motion-specwrap")
    end
  end
end