Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 30 lines (21 sloc) 0.853 kB
#!/usr/bin/ruby1.8
require 'rubygems'
require 'testswarm/client'
client = TestSwarm::Client.new('http://swarm.jcoglan.com')
project = client.project('faye', :auth => '6d26e250d81b32099fccc59db53a3a0e648f0e6d')
job = TestSwarm::Job.create(
:rcs => {
:type => "git",
:url => "git://github.com/faye/faye.git"
},
:directory => "/home/jcoglan/www/swarm.jcoglan.com/app/changeset/#{project.name}",
:diff => ["javascript", "spec/javascript"],
:inject => "spec/browser.html",
:build => ["npm install", "rm -rf build", "jake"]
)
exit unless job.new?
path = "#{client.url}/changeset/#{project.name}/#{job.revision}"
job.add_suite "Faye tests", "#{path}/spec/browser.html"
project.submit_job "Faye Commit #{job.revision}", job,
:browsers => "all",
:max => 5
Jump to Line
Something went wrong with that request. Please try again.