diff --git a/Rakefile b/Rakefile index 1d3b425..7a88614 100644 --- a/Rakefile +++ b/Rakefile @@ -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 diff --git a/cruise_config.rb b/cruise_config.rb new file mode 100644 index 0000000..20d2a5c --- /dev/null +++ b/cruise_config.rb @@ -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 [cruise data]/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