---
language: ruby
bundler_args: --without development
before_install: rm Gemfile.lock || true
sudo: false
rvm:
  - 1.9.3
  - 2.0.0
  - 2.1
  - 2.2.5
  - 2.3.1
script: bundle exec rake test
env:
  - PUPPET_VERSION="~> 3.4.0"
  - PUPPET_VERSION="~> 3.4"
  - PUPPET_VERSION="~> 4.0.0"
  - PUPPET_VERSION="~> 4.1.0"
  - PUPPET_VERSION="~> 4.2.0"
  - PUPPET_VERSION="~> 4.3.0"
  - PUPPET_VERSION="~> 4"
  - PUPPET_VERSION="~> 4" STRICT_VARIABLES="yes"

---
language: ruby
bundler_args: --without development
before_install: rm Gemfile.lock || true
sudo: false
rvm:
  - 1.9.3
  - 2.0.0
  - 2.1
  - 2.2.5
  - 2.3.1
script: bundle exec rake test
env:
  - PUPPET_VERSION="~> 3.4.0"
  - PUPPET_VERSION="~> 3.4"
  - PUPPET_VERSION="~> 4.0.0"
  - PUPPET_VERSION="~> 4.1.0"
  - PUPPET_VERSION="~> 4.2.0"
  - PUPPET_VERSION="~> 4.3.0"
  - PUPPET_VERSION="~> 4"
  - PUPPET_VERSION="~> 4" STRICT_VARIABLES="yes"
matrix:
  exclude:
   - rvm: 2.2.5
     env: PUPPET_VERSION="~> 3.4"
   - rvm: 2.3.1
     env: PUPPET_VERSION="~> 3.4.0"

Exclude incompatible Puppet/Ruby builds from build matrix.
Exclude incompatible Puppet/Ruby builds from build matrix.

Puppet 3.x series with Puppet 2.2+ is not compatible since Puppet ships
a YAML parser that no longer functions on that Ruby version. Best to
remove them entirely from the build matrix so we don't test impossible
combinations.
