forked from lelutin/puppet-asterisk
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRakefile
35 lines (30 loc) · 830 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
require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-lint/tasks/puppet-lint'
# Publishing tasks
unless RUBY_VERSION =~ /^1\./
require 'puppet_blacksmith'
require 'puppet_blacksmith/rake_tasks'
end
exclude_paths = %w(
pkg/**/*
vendor/**/*
.vendor/**/*
spec/**/*
contrib/**/*
)
Rake::Task[:lint].clear
PuppetLint::RakeTask.new :lint do |config|
config.ignore_paths = exclude_paths
config.disable_checks = ['140chars']
config.fail_on_warnings = true
end
PuppetLint.configuration.send('disable_empty_string_assignment')
PuppetLint.configuration.ignore_paths = exclude_paths
PuppetSyntax.exclude_paths = exclude_paths
RSpec::Core::RakeTask.new(:serverspec_local) do |t|
t.rspec_opts = ['--color']
t.pattern = 'spec/acceptance'
end
task :serverspec_local do
Rake::Task[:serverspec_local].invoke
end