Merge pull request #8 from narf-/normalize-testing
Update for nomalize testing.
This commit is contained in:
commit
d3e8c6f4d6
17
.travis.yml
17
.travis.yml
@ -1,13 +1,16 @@
|
|||||||
language: ruby
|
---
|
||||||
before_script: "gem install --no-ri --no-rdoc bundler"
|
env:
|
||||||
after_script:
|
- PUPPET_VERSION=2.7.23
|
||||||
script: 'SPEC_OPTS="--format documentation" bundle exec rake spec'
|
- PUPPET_VERSION=3.2.4
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
rvm:
|
rvm:
|
||||||
- 1.9.3
|
- 1.9.3
|
||||||
- 1.8.7
|
- 1.8.7
|
||||||
env:
|
matrix:
|
||||||
- PUPPET_VERSION=2.7.13
|
allow_failures:
|
||||||
- PUPPET_VERSION=3.2.1
|
- env: PUPPET_VERSION=2.7.23
|
||||||
|
language: ruby
|
||||||
|
before_script: "gem install --no-ri --no-rdoc bundler"
|
||||||
|
script: 'bundle exec rake validate && bundle exec rake lint && SPEC_OPTS="--format documentation" bundle exec rake spec'
|
||||||
gemfile: Gemfile
|
gemfile: Gemfile
|
||||||
|
3
Gemfile
3
Gemfile
@ -1,6 +1,7 @@
|
|||||||
source :rubygems
|
source "https://rubygems.org"
|
||||||
|
|
||||||
puppetversion = ENV.key?('PUPPET_VERSION') ? "= #{ENV['PUPPET_VERSION']}" : ['>= 2.7']
|
puppetversion = ENV.key?('PUPPET_VERSION') ? "= #{ENV['PUPPET_VERSION']}" : ['>= 2.7']
|
||||||
gem 'puppet', puppetversion
|
gem 'puppet', puppetversion
|
||||||
gem 'puppetlabs_spec_helper', '>= 0.1.0'
|
gem 'puppetlabs_spec_helper', '>= 0.1.0'
|
||||||
gem 'puppet-lint', '>= 0.3.2'
|
gem 'puppet-lint', '>= 0.3.2'
|
||||||
|
gem 'facter', '>= 1.7.0', "< 1.8.0"
|
||||||
|
9
Rakefile
9
Rakefile
@ -1,3 +1,12 @@
|
|||||||
require 'rubygems'
|
require 'rubygems'
|
||||||
require 'puppetlabs_spec_helper/rake_tasks'
|
require 'puppetlabs_spec_helper/rake_tasks'
|
||||||
require 'puppet-lint/tasks/puppet-lint'
|
require 'puppet-lint/tasks/puppet-lint'
|
||||||
|
PuppetLint.configuration.send('disable_80chars')
|
||||||
|
PuppetLint.configuration.ignore_paths = ["spec/**/*.pp"]
|
||||||
|
|
||||||
|
desc "Run puppet in noop mode and check for syntax errors."
|
||||||
|
task :validate do
|
||||||
|
Dir['manifests/**/*.pp'].each do |path|
|
||||||
|
sh "puppet parser validate --noop #{path}"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user