File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ PuppetLint.configuration.send('disable_class_inherits_from_params_class')
1717PuppetLint . configuration . send ( 'disable_class_parameter_defaults' )
1818PuppetLint . configuration . send ( 'disable_documentation' )
1919PuppetLint . configuration . send ( 'disable_single_quote_string_with_variables' )
20- PuppetLint . configuration . ignore_paths = [ "spec/**/*.pp" , "pkg/**/*.pp" ]
2120
2221exclude_paths = [
2322 "pkg/**/*" ,
@@ -27,6 +26,13 @@ exclude_paths = [
2726PuppetLint . configuration . ignore_paths = exclude_paths
2827PuppetSyntax . exclude_paths = exclude_paths
2928
29+ desc 'Validate manifests, templates, ruby files and shell scripts'
30+ task :validate do
31+ Dir [ 'spec/**/*.rb' ] . each do |ruby_file |
32+ sh "ruby -c #{ ruby_file } " unless ruby_file =~ /spec\/ fixtures/
33+ end
34+ end
35+
3036desc "Run acceptance tests"
3137RSpec ::Core ::RakeTask . new ( :acceptance ) do |t |
3238 t . pattern = 'spec/acceptance'
You can’t perform that action at this time.
0 commit comments