diff --git a/.travis.yml b/.travis.yml index 9750670..0e44a4a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ --- env: - PUPPET_VERSION=2.7.23 -- PUPPET_VERSION=3.2.4 +- PUPPET_VERSION=3.3.2 notifications: email: false rvm: diff --git a/Rakefile b/Rakefile index 55b411f..0a28d84 100644 --- a/Rakefile +++ b/Rakefile @@ -2,11 +2,17 @@ require 'rubygems' require 'puppetlabs_spec_helper/rake_tasks' require 'puppet-lint/tasks/puppet-lint' PuppetLint.configuration.send('disable_80chars') -PuppetLint.configuration.ignore_paths = ["spec/**/*.pp"] +PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"] desc "Run puppet in noop mode and check for syntax errors." task :validate do - Dir['manifests/**/*.pp'].each do |path| - sh "puppet parser validate --noop #{path}" - end + 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