Created
April 28, 2011 06:53
-
-
Save aaronjensen/945930 to your computer and use it in GitHub Desktop.
our teamcity rake.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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