-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
37 lines (33 loc) · 849 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
37
require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet_blacksmith/rake_tasks'
require 'voxpupuli/release/rake_tasks'
require 'puppet-strings/tasks'
PuppetLint::RakeTask.new :lint do |config|
config.log_format = "%{path}:%{line}:%{check} %{KIND} %{message}"
config.fail_on_warnings = true
config.relative = true
config.with_context = true
config.disable_checks = [ ]
end
exclude_paths = %w(
pkg/**/*
vendor/**/*
.vendor/**/*
spec/**/*
)
PuppetLint.configuration.ignore_paths = exclude_paths
PuppetSyntax.exclude_paths = exclude_paths
desc 'Run acceptance tests'
RSpec::Core::RakeTask.new(:acceptance) do |t|
t.pattern = 'spec/acceptance'
end
Rake::Task["default"].clear
desc 'Run metadata_lint, lint, syntax, spec'
task default: [
:syntax,
:lint,
:spec,
"strings:generate",
:metadata_lint,
]
# vim: syntax=ruby