adds support to run Jasmine suites on CI using Sauce Labs

This commit is contained in:
Nate Clark
2009-12-16 17:27:06 -08:00
parent 40ff1cb4c8
commit 849a4efda8
8 changed files with 171 additions and 43 deletions

View File

@@ -2,12 +2,21 @@ require File.expand_path(File.join(File.dirname(__FILE__), "spec/jasmine_helper.
namespace :test do
desc "Run continuous integration tests"
require "spec"
require 'spec/rake/spectask'
task :ci => :'ci:local'
namespace :ci do
require "spec"
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:ci) do |t|
t.spec_opts = ["--color", "--format", "specdoc"]
t.spec_files = ["spec/jasmine_spec.rb"]
Spec::Rake::SpecTask.new(:local) do |t|
t.spec_opts = ["--color", "--format", "specdoc"]
t.spec_files = ["spec/jasmine_spec.rb"]
end
desc "Run continuous integration tests using Sauce Labs 'Selenium in the Cloud'"
task :saucelabs do
ENV['SAUCELABS'] = 'true'
Rake::Task['test:ci:local'].invoke
end
end
end