From cb7b01e7db1af5ef3dcabc2632cb1551ff1bc962 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sun, 19 Jul 2015 16:20:15 +0300 Subject: [PATCH] Optimise the Travis build matrix Make sure Travis starts its build from the newest Ruby version and allow failures on older Ruby versions. Also specify the fast_finish directive that instructs Travis to mark the build as successful/failed when all builds with Rubies that are not allowed to fail are complete. --- .travis.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index cb869c1..ebd5fc8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,15 @@ language: ruby cache: bundler rvm: - - 1.9.3 - - 2.0.0 - - 2.1.2 - 2.2.2 + - 2.1.6 + - 2.0.0 + - 1.9.3 +matrix: + allow_failures: + - rvm: 1.9.3 + - rvm: 2.0.0 + fast_finish: true script: - RAILS_ENV=test bundle exec rake --trace bootstrap spec sudo: false \ No newline at end of file