Skip to content

Commit

Permalink
Adds acceptance testing to deployment rake task
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen Campbell committed Jul 25, 2013
1 parent 59c6994 commit b60473b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/tasks/deploy.rake
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ namespace :deploy do
task env do
current_branch = `git branch | grep ^* | awk '{ print $2 }'`.strip

puts "Running test specs"
Rake::Task['test:spec'].invoke
puts "Running unit tests"
Rake::Task['spec'].invoke

puts "Running acceptance tests"
Rake::Task['cucumber'].invoke

puts "All test specs passed"
puts "Validating git status"
Rake::Task['deploy:before_deploy'].invoke(env, current_branch)

Expand Down

0 comments on commit b60473b

Please sign in to comment.