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

17 lines
460 B
Ruby
Raw Permalink Normal View History

# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
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