diff options
author | Micah <micah@leap.se> | 2016-05-24 10:19:27 -0400 |
---|---|---|
committer | Micah <micah@leap.se> | 2016-05-24 10:19:27 -0400 |
commit | 8f1fd7c7e042539f3095541b8859276e4dad6629 (patch) | |
tree | 864440ba7ce27d8d1fc8d7a504d554bb2fcd2817 /puppet/modules/couchdb/Rakefile | |
parent | 9721c9eeb21f027456b149764d300a11e301c8ee (diff) | |
parent | af6fdd31fb961fc1b7f408f51001e7a6d192a58a (diff) |
Merge commit 'af6fdd31fb961fc1b7f408f51001e7a6d192a58a' as 'puppet/modules/couchdb'
Diffstat (limited to 'puppet/modules/couchdb/Rakefile')
-rw-r--r-- | puppet/modules/couchdb/Rakefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/puppet/modules/couchdb/Rakefile b/puppet/modules/couchdb/Rakefile new file mode 100644 index 00000000..85326bb4 --- /dev/null +++ b/puppet/modules/couchdb/Rakefile @@ -0,0 +1,19 @@ +require 'puppetlabs_spec_helper/rake_tasks' +require 'puppet-lint/tasks/puppet-lint' +PuppetLint.configuration.send('disable_80chars') +PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"] + +desc "Validate manifests, templates, and ruby files" +task :validate do + Dir['manifests/**/*.pp'].each do |manifest| + sh "puppet parser validate --noop #{manifest}" + end + Dir['spec/**/*.rb','lib/**/*.rb'].each do |ruby_file| + sh "ruby -c #{ruby_file}" unless ruby_file =~ /spec\/fixtures/ + end + Dir['templates/**/*.erb'].each do |template| + sh "erb -P -x -T '-' #{template} | ruby -c" + end +end + +task :test => [:lint, :syntax , :validate, :spec] |