language: ruby

rvm:
  - 2.4.0

env:
  - PUPPET_VERSION="~> 3.6.0"
  - PUPPET_VERSION="~> 3.7.0"
  - PUPPET_VERSION="~> 4.3.0"
  - PUPPET_VERSION="~> 4.3.0" STRICT_VARIABLES=yes
  - PUPPET_VERSION="~> 5.5.0"

before_install:
  - gem update bundler
  - bundle --version
  - gem update --system 2.1.11
  - gem --version

script: "rake test"

sudo: false

language: ruby

rvm: $RUBY_VERSION

env:
  - PUPPET_VERSION="~> 3.6.0" RUBY_VERSION="2.1.0"
  - PUPPET_VERSION="~> 3.7.0" RUBY_VERSION="2.1.0"
  - PUPPET_VERSION="~> 4.3.0" RUBY_VERSION="2.4.0"
  - PUPPET_VERSION="~> 4.3.0" STRICT_VARIABLES=yes RUBY_VERSION="2.4.0"
  - PUPPET_VERSION="~> 5.5.0" RUBY_VERSION="2.4.0"

before_install:
  - gem update bundler
  - bundle --version
  - gem update --system 2.1.11
  - gem --version

script: "rake test"

sudo: false

Work around versioning issues with different Ruby versions
Work around versioning issues with different Ruby versions

Puppet 5.x ships with Ruby 2.4, but older Puppet versions (we still
support Puppet 3.x) are obvioulsy incompatible.

See affected build at https://travis-ci.org/willdurand/puppet-nodejs/builds/366517540
