Test against the latest version of Puppet 3.x and with future parser

This commit is contained in:
Garrett Honeycutt 2015-06-17 01:41:59 -04:00 committed by Ken Barber
parent ad946c55cb
commit 829bc1c1ec
2 changed files with 5 additions and 0 deletions

View file

@ -14,6 +14,8 @@ env:
matrix:
- PUPPET_GEM_VERSION="~> 3.7.1"
- PUPPET_GEM_VERSION="~> 3.7"
- PUPPET_GEM_VERSION="~> 3"
- PUPPET_GEM_VERSION="~> 3" PARSER="future"
global:
- PUBLISHER_LOGIN=puppetlabs
- secure: "FInoEwh3G4Auqp+OOdIc20lDLqrV6FHzWsM8ercHWjhDRD23VI49B1qqehWjaI8lKM3D5mTvdup23IVQBJo8M0rR/yfju1NhMYFTQ5bcJIrbQ3fn4n/zSaE8gLTOtHwzjSlqTJAYjxOAnp1VdMZngqpU/RYfSk68zJD34NqfovA="

View file

@ -4,6 +4,9 @@ RSpec.configure do |c|
c.include PuppetlabsSpec::Files
c.before :each do
# optionally use the future parser based on an environment variable
Puppet[:parser] = 'future' if ENV['PARSER'] == 'future'
# Ensure that we don't accidentally cache facts and environment
# between test cases.
Facter::Util::Loader.any_instance.stubs(:load_all)