From a6f41e4bf1a32222328f517ad4a7ef221c2a09e4 Mon Sep 17 00:00:00 2001 From: Holger Just Date: Sun, 15 Jan 2017 19:01:45 +0100 Subject: [PATCH] Test on all supported versions of MRI Ruby and JRuby. We wnumerate exact Ruby versions in .travis.yml. This is required for at least Ruby 2.4 which isn't currently recognized as a fuzzy match in Travis' RVM version. When specifying it as an exact version, it will install it though. We specify all the other versions too since this makes our tests more reproducable over time. --- .travis.yml | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 517c8d4..9c7f60b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,8 +3,35 @@ # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE.txt file for details. -sudo: false language: ruby +sudo: false + +cache: bundler + rvm: - - 2.2.5 -before_install: gem install bundler -v 1.12.5 + # Latest Rubies on top + - 2.4.0 + - jruby-9.1.6.0 + + # Older versions + - 2.3.3 + - 2.2.6 + - 2.1.10 + + # HEAD-Rubies (might break) + - ruby-head + - jruby-head + +jdk: + - oraclejdk8 + +matrix: + allow_failures: + - rvm: ruby-head + - rvm: jruby-head + +before_install: + - "gem update bundler" + +script: + - bundle exec rspec