/
.travis.yml
41 lines (39 loc) · 1.1 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
language: ruby
rvm:
- 2.0.0
- 2.1
- 2.2
- 2.3
- 2.4
- 2.5
- 2.6.2
- ruby-head
- jruby
matrix:
exclude:
- rvm: jruby
os: osx
- rvm: ruby-head
os: osx
allow_failures:
- rvm: ruby-head
- rvm: jruby
os:
- linux
- osx
sudo: false
cache:
bundler: true
before_script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-darwin-amd64 > ./cc-test-reporter ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter ; fi
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
# HACK: Continue to use bundler <2 because of Ruby v2.2 support. Once the
# lowest dependency is Ruby v2.3 we can consider upgrading to Bundler 2.x.
# @see https://docs.travis-ci.com/user/languages/ruby/#bundler-20
before_install:
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
- gem install bundler -v '< 2'