0f4fe35c19
- add lint and syntax test for Puppet manifests - set env GEM_HOME to allow jenkins install gem locally Change-Id: I4678088dc5ea9ef4cdd5e20feec9880538605067
14 lines
396 B
Ruby
14 lines
396 B
Ruby
require 'puppet-lint/tasks/puppet-lint'
|
|
require 'puppet-syntax/tasks/puppet-syntax'
|
|
|
|
PuppetLint.configuration.fail_on_warnings = true
|
|
PuppetLint.configuration.send('disable_80chars')
|
|
PuppetLint.configuration.send('disable_class_inherits_from_params_class')
|
|
PuppetLint.configuration.send('disable_class_parameter_defaults')
|
|
|
|
desc "Run lint and syntax tests."
|
|
task :test => [
|
|
:lint,
|
|
:syntax,
|
|
]
|