Sha256: 9b6ce177ef3054c28ee7981618c7c02305cab31a7202d5f13f9d31733cc8ba53

Contents?: true

Size: 1.16 KB

Versions: 3

Compression:

Stored size: 1.16 KB

Contents

#!/usr/bin/env ruby

require "rubygems"
require "bundler/setup"
require "testswarm/client"

server  = ENV["TESTSWARM_SERVER"]
key     = ENV["TESTSWARM_KEY"]
root    = ENV["TESTSWARM_ROOT"]
bundle  = ENV["BUNDLE_DIRECTORY"]

client  = TestSwarm::Client.new(server)
project = client.project("faye", :auth => key)

job = TestSwarm::Job.create(
  :rcs        => {
    :type     => "git",
    :url      => "git://github.com/faye/faye.git",
    :branch   => "master"
  },
  :directory  => File.join(root, "changeset", project.name),
  :diff       => ["javascript", "spec/javascript"],
  :build      => [
                   "mkdir -p vendor",
                   "ln -s #{bundle} vendor/bundle",
                   "bundle install --path vendor/bundle",
                   "npm install",
                   "rm -rf build",
                   "bundle exec jake"
                 ],
  :inject     => "spec/browser.html"
)

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

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
faye-0.8.11 spec/testswarm
face-faye-0.8.9 spec/testswarm
faye-0.8.9 spec/testswarm