28 lines
703 B
Ruby
28 lines
703 B
Ruby
require 'puppetlabs_spec_helper/rake_tasks'
|
|
require 'puppet-lint/tasks/puppet-lint'
|
|
require 'puppet-syntax/tasks/puppet-syntax'
|
|
|
|
PuppetLint.configuration.send('disable_80chars')
|
|
PuppetLint.configuration.send('disable_class_inherits_from_params_class')
|
|
PuppetLint.configuration.send('disable_quoted_booleans')
|
|
PuppetLint.configuration.send('disable_autoloader_layout')
|
|
|
|
exclude_paths = [
|
|
"pkg/**/*",
|
|
"vendor/**/*",
|
|
"spec/**/*",
|
|
]
|
|
PuppetLint.configuration.ignore_paths = exclude_paths
|
|
PuppetSyntax.exclude_paths = exclude_paths
|
|
|
|
desc "Acceptance Tests"
|
|
RSpec::Core::RakeTask.new(:acceptance) do |t|
|
|
t.pattern = 'spec/acceptance'
|
|
end
|
|
|
|
desc "Test Suite"
|
|
task :test => [
|
|
:lint,
|
|
:syntax,
|
|
:spec
|
|
] |