forked from theforeman/foreman_maintain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
29 lines (26 loc) · 751 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
require 'rake/testtask'
require 'fileutils'
namespace :test do
Rake::TestTask.new(:lib) do |t|
t.libs << 'lib' << 'test/lib'
t.test_files = FileList['test/lib/**/*_test.rb']
t.verbose = true
t.warning = false
end
Rake::TestTask.new(:definitions) do |t|
t.libs << 'lib' << 'test/definitions'
t.test_files = FileList['test/definitions/**/*_test.rb']
t.verbose = true
t.warning = false
end
end
task :test => ['test:lib', 'test:definitions']
if RUBY_VERSION >= '2.0'
# Latest ruobcop doesn't work with Ruby 1.8.7, but unless it let's us to
# write 1.8.7-compatible code, we are ok
require 'rubocop/rake_task'
RuboCop::RakeTask.new
task :default => [:rubocop, :test]
else
task :default => [:test]
end