2016-05-01 15:55:09 +00:00
|
|
|
# Available ruby versions: http://rubies.travis-ci.org/
|
|
|
|
|
2013-02-19 13:25:41 +00:00
|
|
|
language: ruby
|
2019-08-21 20:26:38 +00:00
|
|
|
sudo: false
|
2016-10-10 20:20:18 +00:00
|
|
|
|
2015-08-12 07:25:08 +00:00
|
|
|
os:
|
|
|
|
- linux
|
2019-08-21 21:11:56 +00:00
|
|
|
# - osx
|
2016-10-10 20:20:18 +00:00
|
|
|
|
2013-02-19 13:25:41 +00:00
|
|
|
rvm:
|
2015-03-14 01:01:52 +00:00
|
|
|
- "2.1" # latest 2.1.x
|
2019-08-21 20:26:38 +00:00
|
|
|
- "2.2.10"
|
|
|
|
- "2.3.8"
|
|
|
|
- "2.4.6"
|
|
|
|
- "2.5.5"
|
|
|
|
- "2.6.3"
|
2016-05-01 15:55:09 +00:00
|
|
|
- "ruby-head"
|
2019-08-21 20:26:38 +00:00
|
|
|
- "jruby-9.1.9.0"
|
2015-04-29 17:32:59 +00:00
|
|
|
- "jruby-head"
|
2016-10-10 20:20:18 +00:00
|
|
|
|
2017-02-19 03:19:36 +00:00
|
|
|
cache: bundler
|
|
|
|
|
2014-04-02 07:23:13 +00:00
|
|
|
script:
|
2017-07-05 07:15:00 +00:00
|
|
|
- bundle exec rake test
|
|
|
|
- bundle exec rake rubocop
|
2016-10-10 20:20:18 +00:00
|
|
|
|
2013-03-21 20:09:18 +00:00
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- "readme-edits"
|
2016-10-10 20:20:18 +00:00
|
|
|
|
2016-05-20 04:32:02 +00:00
|
|
|
before_install:
|
2019-08-21 20:30:59 +00:00
|
|
|
# Install rubygems < 3.0 so that we can support ruby < 2.3
|
|
|
|
# https://github.com/rubygems/rubygems/issues/2534
|
|
|
|
- gem install rubygems-update -v '<3' && update_rubygems
|
2016-05-20 04:32:02 +00:00
|
|
|
# bundler installation needed for jruby-head
|
|
|
|
# https://github.com/travis-ci/travis-ci/issues/5861
|
2019-08-21 20:50:26 +00:00
|
|
|
# stick to bundler 1.x in order to support ruby < 2.3
|
|
|
|
- gem install bundler -v '~> 1.17'
|
2015-09-27 19:47:41 +00:00
|
|
|
|
2019-08-21 21:11:56 +00:00
|
|
|
# Travis macOS support is pretty janky. These are some hacks to include tests
|
|
|
|
# only on versions that actually work. We test on macOS because Apple monkey
|
|
|
|
# patches OpenSSL to have different behavior, and we want to ensure that SSL
|
|
|
|
# verification at least is broken in the expected ways on macOS.
|
|
|
|
# (last tested: 2019-08)
|
2015-09-27 19:47:41 +00:00
|
|
|
matrix:
|
2016-10-11 01:30:24 +00:00
|
|
|
# exclude: {}
|
2019-08-21 21:11:56 +00:00
|
|
|
include:
|
|
|
|
# test only a few versions on mac
|
|
|
|
- os: osx
|
|
|
|
rvm: 2.6.3
|
|
|
|
- os: osx
|
|
|
|
rvm: ruby-head
|
|
|
|
- os: osx
|
|
|
|
rvm: jruby-9.1.9.0
|
|
|
|
- os: osx
|
|
|
|
rvm: jruby-head
|
2016-10-10 20:20:18 +00:00
|
|
|
|
2016-11-30 02:22:56 +00:00
|
|
|
allow_failures:
|
|
|
|
- rvm: 'ruby-head'
|
2016-10-10 20:20:18 +00:00
|
|
|
|
|
|
|
# return results as soon as mandatory versions are done
|
2016-05-01 21:47:59 +00:00
|
|
|
fast_finish: true
|