os:
  - linux
  - osx

language: ruby
rvm:
  - 1.8.7
  - 1.9.3
  - 2.3.3
  - 2.4.0
  - jruby-9.1.7.0

gemfile:
  - testing/gemfiles/gherkin2.gemfile
  - testing/gemfiles/gherkin3.gemfile
  - testing/gemfiles/gherkin4.gemfile

matrix:
  exclude:
  # gherkin 3.x does not work with Ruby 1.8.x
  - rvm: 1.8.7
    gemfile: testing/gemfiles/gherkin3.gemfile
  # gherkin 4.x does not work with Ruby 1.8.x
  - rvm: 1.8.7
    gemfile: testing/gemfiles/gherkin4.gemfile
  # gherkin 5.x does not work with Ruby 1.8.x
  - rvm: 1.8.7
    gemfile: testing/gemfiles/gherkin5.gemfile
  # Travis does not provide 1.8.7 on OSX
  - rvm: 1.8.7
    os: osx

# todo - Remove this once TravisCI fixes their bundler issue (https://github.com/alphagov/govuk_template/pull/186)
before_install:
  - gem install bundler -v 1.9.10

script: bundle exec rake cuke_modeler:ci_build

os:
  - linux
  - osx

language: ruby
rvm:
  - 1.8.7
  - 1.9.3
  - 2.3.3
  - 2.4.0
  - jruby-9.1.7.0

gemfile:
  - testing/gemfiles/gherkin2.gemfile
  - testing/gemfiles/gherkin3.gemfile
  - testing/gemfiles/gherkin4.gemfile
  - testing/gemfiles/gherkin5.gemfile

matrix:
  exclude:
  # gherkin 3.x does not work with Ruby 1.8.x
  - rvm: 1.8.7
    gemfile: testing/gemfiles/gherkin3.gemfile
  # gherkin 4.x does not work with Ruby 1.8.x
  - rvm: 1.8.7
    gemfile: testing/gemfiles/gherkin4.gemfile
  # gherkin 5.x does not work with Ruby 1.8.x
  - rvm: 1.8.7
    gemfile: testing/gemfiles/gherkin5.gemfile
  # Travis does not provide 1.8.7 on OSX
  - rvm: 1.8.7
    os: osx

# todo - Remove this once TravisCI fixes their bundler issue (https://github.com/alphagov/govuk_template/pull/186)
before_install:
  - gem install bundler -v 1.9.10

script: bundle exec rake cuke_modeler:ci_build

Update Travis build for Gherkin 5.x
Update Travis build for Gherkin 5.x

Added the new gemfile to the CI process for Travis.
