Skip to content

Instantly share code, notes, and snippets.

@aaronjensen
Created April 28, 2011 06:53
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save aaronjensen/945930 to your computer and use it in GitHub Desktop.
Save aaronjensen/945930 to your computer and use it in GitHub Desktop.
our teamcity rake.
task :teamcity => ['teamcity:clean', 'teamcity:setup', 'barista:brew', 'fork:spec', 'teamcity:cucumber', 'jasmine:ci']
namespace :teamcity do
task :setup do
RAILS_ENV = 'test'
Rake::Task['db:drop'].invoke
Rake::Task['db:create'].invoke
Rake::Task['db:schema:load'].invoke
end
task :clean do
FileUtils.rm_rf(File.dirname(__FILE__) + "/../../public/javascripts/compiled")
FileUtils.rm_rf(File.dirname(__FILE__) + "/../../spec/javascripts/compiled")
end
task :spec do
RAILS_ENV = 'test'
Rake::Task['spec'].prerequisites.clear
Rake::Task['spec'].invoke
end
task :cucumber do
RAILS_ENV = 'cucumber'
FileUtils.rm_f(File.dirname(__FILE__) + '/../../rerun.txt')
Rake::Task['cucumber:ok'].prerequisites.clear
Rake::Task['cucumber:ok'].invoke
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment