add task
This commit is contained in:
parent
d91e965442
commit
98829baf2b
@ -1,2 +1,3 @@
|
||||
require 'cuke-pack/tasks/any_wip'
|
||||
require 'cuke-pack/tasks/precommit'
|
||||
|
||||
|
10
lib/cuke-pack/tasks/precommit.rb
Normal file
10
lib/cuke-pack/tasks/precommit.rb
Normal 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
|
Loading…
Reference in New Issue
Block a user