Project

General

Profile

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

foreman_pipeline / Rakefile @ be52ca64

1
#!/usr/bin/env rake
2
begin
3
  require 'bundler/setup'
4
rescue LoadError
5
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
end
7
begin
8
  require 'rdoc/task'
9
rescue LoadError
10
  require 'rdoc/rdoc'
11
  require 'rake/rdoctask'
12
  RDoc::Task = Rake::RDocTask
13
end
14

    
15
RDoc::Task.new(:rdoc) do |rdoc|
16
  rdoc.rdoc_dir = 'rdoc'
17
  rdoc.title    = 'ForemanPipeline'
18
  rdoc.options << '--line-numbers'
19
  rdoc.rdoc_files.include('README.rdoc')
20
  rdoc.rdoc_files.include('lib/**/*.rb')
21
end
22

    
23
APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
24
load 'rails/tasks/engine.rake'
25

    
26

    
27

    
28
Bundler::GemHelper.install_tasks
29

    
30
require 'rake/testtask'
31

    
32
Rake::TestTask.new(:test) do |t|
33
  t.libs << 'lib'
34
  t.libs << 'test'
35
  t.pattern = 'test/**/*_test.rb'
36
  t.verbose = false
37
end
38

    
39

    
40
task :default => :test