making jasmine know about ci

This commit is contained in:
David Goudreau & Rajan Agaskar 2009-12-28 16:45:01 -08:00
parent 99ab1f0e81
commit 163f5977a5
2 changed files with 26 additions and 1 deletions

View File

@ -134,13 +134,17 @@ jasmine.version_= {
end end
desc "Run continuous integration tests using Sauce Labs 'Selenium in the Cloud'" desc "Run continuous integration tests using Sauce Labs 'Selenium in the Cloud'"
task :saucelabs => 'jasmine:build' do task :saucelabs => ['jasmine:copy_saucelabs_config', 'jasmine:build'] do
ENV['SAUCELABS'] = 'true' ENV['SAUCELABS'] = 'true'
Rake::Task['jasmine:test:ci:local'].invoke Rake::Task['jasmine:test:ci:local'].invoke
end end
end end
end end
desc 'Copy saucelabs.yml to work directory'
task 'copy_saucelabs_config' do
FileUtils.cp '../saucelabs.yml', 'spec'
end
end end
namespace :gems do namespace :gems do

21
cruise_config.rb Normal file
View File

@ -0,0 +1,21 @@
# Project-specific configuration for CruiseControl.rb
Project.configure do |project|
# Send email notifications about broken and fixed builds to email1@your.site, email2@your.site (default: send to nobody)
# project.email_notifier.emails = ['email1@your.site', 'email2@your.site']
# Set email 'from' field to john@doe.com:
# project.email_notifier.from = 'john@doe.com'
# Build the project by invoking rake task 'custom'
project.rake_task = 'jasmine:test:ci:saucelabs'
# Build the project by invoking shell script "build_my_app.sh". Keep in mind that when the script is invoked,
# current working directory is <em>[cruise&nbsp;data]</em>/projects/your_project/work, so if you do not keep build_my_app.sh
# in version control, it should be '../build_my_app.sh' instead
#project.build_command = 'cp ../saucelabs.yml .'
# Ping Subversion for new revisions every 5 minutes (default: 30 seconds)
# project.scheduler.polling_interval = 5.minutes
end