trabajo-afectivo/lib/tasks/zammad/ci/test/fail.rake

15 lines
384 B
Ruby
Raw Normal View History

2018-10-01 17:41:17 +00:00
namespace :zammad do
namespace :ci do
namespace :test do
desc 'Stops all of Zammads services and exists the rake task with exit code 1'
task :fail, [:no_app] do |_task, args| # rubocop:disable Rails/RakeEnvironment
Rake::Task['zammad:ci:test:stop'].invoke if args[:no_app].blank?
2018-10-01 17:41:17 +00:00
abort('Abort further test processing')
end
end
end
end