puppet-neutron/Rakefile
Cody Herriges e0b04137d9 Sync up module with latest msync commit.
Msync commit to push all our managed modules to the default set of
  configs.  Being done for two reason: to address a helper library
  loading issue that is addressed in
  d4278834d5
  and to make all module contents consistent.

Change-Id: I747e589369a7ce187dc11c981f5d327af0cf73f5
2015-06-16 08:40:37 -07:00

22 lines
769 B
Ruby

require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-lint/tasks/puppet-lint'
require 'puppet-syntax/tasks/puppet-syntax'
PuppetSyntax.exclude_paths ||= []
PuppetSyntax.exclude_paths << "spec/fixtures/**/*"
PuppetSyntax.exclude_paths << "pkg/**/*"
PuppetSyntax.exclude_paths << "vendor/**/*"
Rake::Task[:lint].clear
PuppetLint::RakeTask.new :lint do |config|
config.ignore_paths = ["spec/**/*.pp", "vendor/**/*.pp"]
config.fail_on_warnings = true
config.log_format = '%{path}:%{linenumber}:%{KIND}: %{message}'
config.disable_checks = ["80chars", "class_inherits_from_params_class", "class_parameter_defaults", "parameter_documentation"]
end
desc "Run acceptance tests"
RSpec::Core::RakeTask.new(:acceptance) do |t|
t.pattern = 'spec/acceptance'
end