forked from grigarr/puppet-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
29 lines (24 loc) · 708 Bytes
/
Rakefile
File metadata and controls
29 lines (24 loc) · 708 Bytes
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 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-lint/tasks/puppet-lint'
Rake::Task['lint'].clear
PuppetLint::RakeTask.new :lint do |config|
config.pattern = 'manifests/**/*.pp'
config.fail_on_warnings = true
end
task :default => [:metadata, :lint, :spec]
task :metadata do
sh 'metadata-json-lint metadata.json'
end
namespace :spec do
task :acceptance do
['centos65', 'debian7', 'sles11sp3', 'ubuntu1404'].each do |set|
name = 'spec:acceptance:' + set
ENV['BEAKER_set'] = set
ENV['BEAKER_destroy'] = 'onpass'
Spec::Rake::SpecTask.new(name) do |t|
t.pattern = 'spec/acceptance/**/*_spec.rb'
end
Rake::Task[name].invoke
end
end
end