-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
36 lines (31 loc) · 829 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
35
36
require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-syntax/tasks/puppet-syntax'
require 'puppet-lint/tasks/puppet-lint'
begin
require 'puppet_blacksmith/rake_tasks'
rescue LoadError
end
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
# warnings are currently non-fatal due to suspected problems with
# validation of matrix::include
#sh "travis lint --exit-code" do |ok, res|
sh "travis lint --no-interactive" do |ok, res|
unless ok
# exit without verbose rake error message
exit res.exitstatus
end
end
end
end
task :default => [
:validate,
:lint,
:spec,
]