Skip to content

Commit b27cda0

Browse files
committed
Enable testing of Ruby 2.3.1
1 parent 971d569 commit b27cda0

2 files changed

Lines changed: 37 additions & 5 deletions

File tree

.travis.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ language: ruby
33

44
bundler_args: --without system_tests
55

6+
before_install:
7+
- bundle -v
8+
- rm Gemfile.lock || true
9+
- gem update --system
10+
- gem update bundler
11+
- gem --version
12+
- bundle -v
13+
614
rvm:
715
- 1.8.7
816
- 1.9.3
@@ -27,16 +35,17 @@ env:
2735
- PUPPET_GEM_VERSION="~> 4.3.0"
2836
- PUPPET_GEM_VERSION="~> 4.4.0"
2937
- PUPPET_GEM_VERSION="~> 4.5.0"
30-
- PUPPET_GEM_VERSION="~> 4" STRICT_VARIABLES="yes"
38+
- PUPPET_GEM_VERSION="~> 4.6.0"
39+
- PUPPET_GEM_VERSION="~> 4.7.0"
40+
- PUPPET_GEM_VERSION="~> 4.8.0"
41+
- PUPPET_GEM_VERSION="~> 4"
3142

3243
sudo: false
3344

34-
script: 'bundle exec rake validate && bundle exec rake lint && SPEC_OPTS="--format documentation" bundle exec rake spec'
45+
script: 'SPEC_OPTS="--format documentation" bundle exec rake validate lint spec'
3546

3647
matrix:
3748
fast_finish: true
38-
allow_failures:
39-
- rvm: 2.3.1
4049
exclude:
4150
- rvm: 2.0.0
4251
env: PUPPET_GEM_VERSION="~> 3.1.0"
@@ -61,7 +70,13 @@ matrix:
6170
- rvm: 1.8.7
6271
env: PUPPET_GEM_VERSION="~> 4.5.0"
6372
- rvm: 1.8.7
64-
env: PUPPET_GEM_VERSION="~> 4" STRICT_VARIABLES="yes"
73+
env: PUPPET_GEM_VERSION="~> 4.6.0"
74+
- rvm: 1.8.7
75+
env: PUPPET_GEM_VERSION="~> 4.7.0"
76+
- rvm: 1.8.7
77+
env: PUPPET_GEM_VERSION="~> 4.8.0"
78+
- rvm: 1.8.7
79+
env: PUPPET_GEM_VERSION="~> 4"
6580
- rvm: 2.3.1
6681
env: PUPPET_GEM_VERSION="~> 3.1.0"
6782
- rvm: 2.3.1

spec/spec_helper.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,18 @@
11
require 'puppetlabs_spec_helper/module_spec_helper'
2+
3+
RSpec.configure do |config|
4+
config.hiera_config = 'spec/fixtures/hiera/hiera.yaml'
5+
config.before :each do
6+
# Ensure that we don't accidentally cache facts and environment between
7+
# test cases. This requires each example group to explicitly load the
8+
# facts being exercised with something like
9+
# Facter.collection.loader.load(:ipaddress)
10+
Facter.clear
11+
Facter.clear_messages
12+
end
13+
config.default_facts = {
14+
:environment => 'rp_env',
15+
:operatingsystemmajrelease => '6',
16+
:osfamily => 'RedHat',
17+
}
18+
end

0 commit comments

Comments
 (0)