---
language: ruby
# Workaround https://github.com/bundler/bundler/issues/3558
before_install: gem install bundler
script: bundle exec rake
rvm:
  - 1.9.3
  - 2.1.6
  - 2.2.6
  - 2.3.3
  - 2.4.0
env:
  - PUPPET_VERSION="~> 3.8.7"
  - PUPPET_VERSION="~> 4.8.0"
  - PUPPET_VERSION=">= 0"
matrix:
  exclude:
    - env: PUPPET_VERSION="~> 3.8.7"
      rvm: 2.2.6
    - env: PUPPET_VERSION="~> 3.8.7"
      rvm: 2.3.3
    - env: PUPPET_VERSION="~> 3.8.7"
      rvm: 2.4.0
  allow_failures:
    - env: PUPPET_VERSION=">= 0"

---
language: ruby
# Workaround https://github.com/bundler/bundler/issues/3558
before_install: gem install bundler
script: bundle exec rake
rvm:
  - 1.9.3
  - 2.1.6
  - 2.2.6
  - 2.3.3
  - 2.4.0
env:
  - PUPPET_VERSION="~> 3.8.7"
  - PUPPET_VERSION="~> 4.8.0"
  - PUPPET_VERSION=">= 0"
matrix:
  exclude:
    - env: PUPPET_VERSION="~> 3.8.7"
      rvm: 2.2.6
    - env: PUPPET_VERSION="~> 3.8.7"
      rvm: 2.3.3
    - env: PUPPET_VERSION="~> 3.8.7"
      rvm: 2.4.0
  allow_failures:
    - env: PUPPET_VERSION=">= 0"

deploy:
  provider: rubygems
  api_key:
    secure: "kwxryZZ/t9EkWuYxhz3G1v+U3ZK4WdsiN0UFHDjijnAGPxqe/n+oBcNA8hOiNhjZeTFo8bADEZkL7JtdKQo9RvgStipyaS5gDHB/C1c4LOBWv4Tga21NNCAuBcE2CDtAH3+TzrZV5vv2+SpOrhKZpzZoAoR6PR1MWVWMUie/rE0="
  gem: puppet-syntax
  on:
    rvm: 2.4.0
    condition: '"$PUPPET_VERSION" = "~> 4.8.0"'
    tags: true
    all_branches: true
    repo: voxpupuli/puppet-syntax

Enable Travis CI releasing to Rubygems.org
Enable Travis CI releasing to Rubygems.org
