forked from jhoblitt/puppet-udev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
34 lines (29 loc) · 823 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
30
31
32
33
34
require 'puppetlabs_spec_helper/rake_tasks'
begin
require 'puppet_blacksmith/rake_tasks'
rescue LoadError
end
PuppetLint.configuration.send("disable_class_inherits_from_params_class")
PuppetLint.configuration.send("disable_80chars")
PuppetLint.configuration.ignore_paths = ['pkg/**/*.pp', 'spec/**/*.pp', 'tests/**/*.pp']
PuppetSyntax.exclude_paths = ['spec/fixtures/**/*']
PuppetLint::RakeTask.new :lint do |config|
config.pattern = 'manifests/**/*.pp'
config.fail_on_warnings = true
end
namespace :travis do
desc 'Syntax check travis.yml'
task :lint do
sh "travis lint --exit-code --skip-completion-check" do |ok, res|
unless ok
# exit without verbose rake error message
exit res.exitstatus
end
end
end
end
task :default => [
:validate,
:lint,
:spec,
]