Make it all work again.
Previous iterations and even a release were all broken. The module works again, sorry for the interlude. - Giving up on params and moving to module_data (WIP) - Change the Package and Service references to the static 'bind' name - Add a meager amount of test coverage
This commit is contained in:
@@ -1,11 +1,18 @@
|
||||
# ex: syntax=ruby ts=2 ts=2 si et
|
||||
require 'puppet-lint/tasks/puppet-lint'
|
||||
require 'puppetlabs_spec_helper/rake_tasks'
|
||||
require 'puppet-lint/tasks/puppet-lint'
|
||||
require 'puppet-syntax/tasks/puppet-syntax'
|
||||
|
||||
exclude_paths = [
|
||||
'bundle/**/*',
|
||||
'pkg/**/*',
|
||||
'vendor/**/*',
|
||||
'spec/**/*'
|
||||
]
|
||||
|
||||
Rake::Task[:lint].clear
|
||||
PuppetLint::RakeTask.new :lint do |config|
|
||||
config.fail_on_warnings
|
||||
config.ignore_paths = [ 'pkg/**/*', 'spec/**/*', 'gemfiles/vendor/**/*' ]
|
||||
config.fail_on_warnings = true
|
||||
config.ignore_paths = exclude_paths
|
||||
config.disable_checks = [
|
||||
'80chars',
|
||||
'class_parameter_defaults',
|
||||
@@ -14,4 +21,20 @@ PuppetLint::RakeTask.new :lint do |config|
|
||||
]
|
||||
end
|
||||
|
||||
task :default => [ :spec, :lint ]
|
||||
PuppetSyntax.exclude_paths = exclude_paths
|
||||
|
||||
RSpec::Core::RakeTask.new(:acceptance) do |t|
|
||||
t.pattern = 'spec/acceptance'
|
||||
end
|
||||
|
||||
task :metadata do
|
||||
sh 'metadata-json-lint metadata.json'
|
||||
end
|
||||
|
||||
desc 'Run syntax, lint, and spec tests.'
|
||||
task :test => [
|
||||
:syntax,
|
||||
:lint,
|
||||
:spec,
|
||||
:metadata
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user