Skip to content

Commit

Permalink
making jasmine know about ci
Browse files Browse the repository at this point in the history
  • Loading branch information
David Goudreau & Rajan Agaskar committed Dec 29, 2009
1 parent 99ab1f0 commit 163f597
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,17 @@ jasmine.version_= {
end

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'
Rake::Task['jasmine:test:ci:local'].invoke
end
end
end

desc 'Copy saucelabs.yml to work directory'
task 'copy_saucelabs_config' do
FileUtils.cp '../saucelabs.yml', 'spec'
end
end

namespace :gems do
Expand Down
21 changes: 21 additions & 0 deletions cruise_config.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 163f597

Please sign in to comment.