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 8, 2012 · 2 revisions

If you use RubyMotion, it will work with OctopusCI right now (v1.9 at the time of this writing).

Modify your RubyMotion project to produce a proper exit value when testing

Write an adequate job spec

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