Sha256: ea25837c0073d44ea8dae51a36deae73709faad44ed38ee9d27ecf52974b8d3d

Contents?: true

Size: 626 Bytes

Versions: 58

Compression:

Stored size: 626 Bytes

Contents

# Setup Tests
namespace :test do
  desc "Test Discovery plugin"
  Rake::TestTask.new(:discovery) do |t|
    test_dir = File.join(File.dirname(__FILE__), '..', 'test')
    t.libs << ["test",test_dir]
    if ENV['FILE'] || ENV['TEST']
      t.pattern = ENV['FILE'] || ENV['TEST']
    else
      t.pattern = "#{test_dir}/**/*_test.rb"
    end
    t.verbose = true
    t.warning = false
  end
end
Rake::Task[:test].enhance do
  Rake::Task['test:discovery'].invoke
end

load 'tasks/jenkins.rake'
if Rake::Task.task_defined?(:'jenkins:unit')
  Rake::Task["jenkins:unit"].enhance do
    Rake::Task['test:discovery'].invoke
  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
foreman_discovery-23.0.0 lib/discovery.rake
foreman_discovery-22.0.4 lib/discovery.rake
foreman_discovery-21.0.5 lib/discovery.rake
foreman_discovery-22.0.2 lib/discovery.rake
foreman_discovery-21.0.4 lib/discovery.rake
foreman_discovery-21.0.3 lib/discovery.rake
foreman_discovery-21.0.2 lib/discovery.rake
foreman_discovery-19.0.5 lib/discovery.rake
foreman_discovery-19.0.4 lib/discovery.rake
foreman_discovery-21.0.1 lib/discovery.rake
foreman_discovery-19.0.3 lib/discovery.rake
foreman_discovery-21.0.0 lib/discovery.rake
foreman_discovery-19.0.2 lib/discovery.rake
foreman_discovery-20.0.1 lib/discovery.rake
foreman_discovery-20.0.0 lib/discovery.rake
foreman_discovery-19.0.1 lib/discovery.rake
foreman_discovery-19.0.0 lib/discovery.rake
foreman_discovery-18.0.5 lib/discovery.rake
foreman_discovery-18.0.4 lib/discovery.rake
foreman_discovery-18.0.3 lib/discovery.rake