Sha256: 59ebbe160aff0be4a644253d75c7698b59db211a0d70c8eefc1e2fbfb4b249be
Contents?: true
Size: 666 Bytes
Versions: 34
Compression:
Stored size: 666 Bytes
Contents
require 'rake/testtask' # Tasks namespace :foreman_puppet do namespace :example do desc 'Example Task' task task: :environment do # Task goes here end end end # Tests namespace :test do desc 'Test ForemanPuppet' Rake::TestTask.new(:foreman_puppet) do |t| test_dir = File.expand_path('../../test', __dir__) t.libs << 'test' t.libs << test_dir t.pattern = "#{test_dir}/**/*_test.rb" t.verbose = true t.warning = false end end Rake::Task[:test].enhance ['test:foreman_puppet'] load 'tasks/jenkins.rake' if Rake::Task.task_defined?(:'jenkins:unit') Rake::Task['jenkins:unit'].enhance ['test:foreman_puppet'] end
Version data entries
34 entries across 34 versions & 1 rubygems