trabajo-afectivo/lib/tasks/zammad/ci/test/fail.rake
2022-01-01 14:38:12 +01:00

16 lines
461 B
Ruby

# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
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?
abort('Abort further test processing')
end
end
end
end