Sha256: 6aa5316a19c3959448fad42bf5b5d881705a07869611def89f2b9f7e795dbb57
Contents?: true
Size: 1003 Bytes
Versions: 13
Compression:
Stored size: 1003 Bytes
Contents
# frozen_string_literal: true # Tests namespace :test do desc 'Test ForemanAcd' Rake::TestTask.new(:foreman_acd) do |t| test_dir = File.join(File.dirname(__FILE__), '../..', 'test') t.libs << ['test', test_dir] t.pattern = "#{test_dir}/**/*_test.rb" t.verbose = true t.warning = false end end namespace :foreman_acd do task :rubocop do begin require 'rubocop/rake_task' RuboCop::RakeTask.new(:rubocop_foreman_acd) do |task| task.patterns = ["#{ForemanAcd::Engine.root}/app/**/*.rb", "#{ForemanAcd::Engine.root}/lib/**/*.rb", "#{ForemanAcd::Engine.root}/test/**/*.rb"] end rescue StandardError puts 'Rubocop not loaded.' end Rake::Task['rubocop_foreman_acd'].invoke end end Rake::Task[:test].enhance ['test:foreman_acd'] load 'tasks/jenkins.rake' Rake::Task['jenkins:unit'].enhance ['test:foreman_acd', 'foreman_acd:rubocop'] if Rake::Task.task_defined?(:'jenkins:unit')
Version data entries
13 entries across 13 versions & 1 rubygems