Project

General

Profile

Download (672 Bytes) Statistics
| Branch: | Tag: | Revision:

foreman_pipeline / lib / foreman_pipeline / tasks / foreman_pipeline_test.rake @ dce03a1e

1
require File.expand_path("../engine", File.dirname(__FILE__))
2

    
3
namespace :test do
4

    
5
  task :foreman_pipeline => ['db:test:prepare'] do
6
    test_task = Rake::TestTask.new('foreman_pipeline_test_task') do |t|
7
      t.libs << ["test", "#{ForemanPipeline::Engine.root}/test"]
8
      t.test_files = ["#{ForemanPipeline::Engine.root}/test/**/*_test.rb"]
9
      t.verbose = true
10
    end
11
    Rake::Task[test_task.name].invoke
12
  end
13
end
14

    
15
Rake::Task[:test].enhance do
16
  Rake::Task['test:foreman_pipeline'].invoke
17
end
18

    
19
load 'tasks/jenkins.rake'
20
if Rake::Task.task_defined?(:'jenkins:unit')
21
  Rake::Task["jenkins:unit"].enhance do
22
    Rake::Task['test:foreman_pipeline'].invoke
23
  end
24
end