diff options
author | Raphaël Pinson <raphael.pinson@camptocamp.com> | 2014-12-18 09:52:19 +0100 |
---|---|---|
committer | Raphaël Pinson <raphael.pinson@camptocamp.com> | 2014-12-18 09:52:19 +0100 |
commit | 4ee3ccd822c6f2c673ca2f5ff08b9970ddccbb45 (patch) | |
tree | 838eea51ce9e29268a541bde1997f44bb1929995 | |
parent | 735970f5687f25dd0437133c1408cd30ea6eef4c (diff) |
Exclude vendor directories from tests
-rw-r--r-- | .travis.yml | 2 | ||||
-rw-r--r-- | Gemfile | 2 | ||||
-rw-r--r-- | Rakefile | 4 |
3 files changed, 6 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index 7d246af..db911af 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,7 @@ --- language: ruby +sudo: false +cache: bundler bundler_args: --without system_tests script: ["bundle exec rake validate", "bundle exec rake lint", "bundle exec fakeroot rake spec SPEC_OPTS='--format documentation'", "bundle exec rake metadata"] matrix: @@ -4,7 +4,7 @@ group :development, :unit_tests do gem 'rake', :require => false gem 'rspec-puppet', :require => false, :git => 'https://github.com/rodjek/rspec-puppet.git' gem 'puppetlabs_spec_helper', :require => false - gem 'puppet-lint', :require => false + gem 'puppet-lint', '< 1.1.0', :require => false gem 'simplecov', :require => false gem 'rspec-puppet-facts', :require => false gem 'json', :require => false @@ -4,7 +4,9 @@ require 'puppet-lint/tasks/puppet-lint' PuppetLint.configuration.fail_on_warnings PuppetLint.configuration.send('relative') PuppetLint.configuration.send('disable_80chars') -PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"] +PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp", "vendor/**/*.pp"] + +PuppetSyntax.exclude_paths = ["spec/fixtures/**/*.pp", "vendor/**/*"] desc "Lint metadata.json file" task :metadata do |