Sha256: 5d5dbeb71976b450a0bcd62232336b75260d278b3bdc099ebafd1ba4068e9f68
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 KB
Contents
namespace :test do desc 'Test ForemanNameGenerator' Rake::TestTask.new(:foreman_name_generator) do |t| test_dir = File.join(File.dirname(__FILE__), '../..', 'test') t.libs << ['test', test_dir] t.pattern = "#{test_dir}/**/*_test.rb" t.verbose = true end end namespace :foreman_name_generator do task :rubocop do begin require 'rubocop/rake_task' RuboCop::RakeTask.new(:rubocop_foreman_name_generator) do |task| task.patterns = ["#{ForemanNameGenerator::Engine.root}/app/**/*.rb", "#{ForemanNameGenerator::Engine.root}/lib/**/*.rb", "#{ForemanNameGenerator::Engine.root}/test/**/*.rb"] end rescue puts 'Rubocop not loaded.' end Rake::Task['rubocop_foreman_name_generator'].invoke end end Rake::Task[:test].enhance do Rake::Task['test:foreman_name_generator'].invoke end load 'tasks/jenkins.rake' if Rake::Task.task_defined?(:'jenkins:unit') Rake::Task['jenkins:unit'].enhance do Rake::Task['test:foreman_name_generator'].invoke Rake::Task['foreman_name_generator:rubocop'].invoke end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foreman_name_generator-0.0.2 | lib/tasks/foreman_name_generator_tasks.rake |
foreman_name_generator-0.0.1 | lib/tasks/foreman_name_generator_tasks.rake |