This commit is contained in:
John Bintz 2012-08-22 11:59:55 -04:00
parent d91e965442
commit 98829baf2b
2 changed files with 11 additions and 0 deletions

View File

@ -1,2 +1,3 @@
require 'cuke-pack/tasks/any_wip' require 'cuke-pack/tasks/any_wip'
require 'cuke-pack/tasks/precommit'

View File

@ -0,0 +1,10 @@
namespace :cuke_pack do
desc "Run cucumber in precommit mode"
task :precommit do
system %{cucumber -p precommit}
if $?.exitstatus != 0
raise StandardError.new("cucumber failed")
end
end
end