forked from nylas/nylas-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (38 loc) · 1.03 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.3
- 2.4
- 2.5
- 2.6
cache: bundler
gemfile:
- gemfiles/Gemfile.rails5
- gemfiles/Gemfile.rest-client.1
- gemfiles/Gemfile.rest-client.2
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script: bundle exec rspec spec
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
env:
global:
- CC_TEST_REPORTER_ID=d6eceb65e7832b7989705fe162ec290d311d9d37e4e1a653f30ad957a683253a
matrix:
include:
- rvm: 2.4
gemfile: gemfiles/Gemfile.rails4
before_install:
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
- gem install bundler -v '< 2'
- rvm: 2.5
gemfile: gemfiles/Gemfile.rails6
- rvm: 2.6
gemfile: gemfiles/Gemfile.rails6
- name: "RuboCop"
rvm: 2.6
gemfile: gemfiles/Gemfile.rubocop
before_script: skip
script: bundle exec rubocop --config .rubocop.yml
after_script: skip