forked from mongoid/mongoid-locker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (41 loc) · 1.01 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
42
43
44
45
46
47
48
services:
- mongodb
language: ruby
cache: bundler
script:
- bundle exec rspec
rvm:
- 2.3.8
- 2.4.5
- 2.5.4
- 2.6.2
- jruby-9.1.17.0
- jruby-9.2.6.0
env:
- MONGOID_VERSION=5
- MONGOID_VERSION=6
- MONGOID_VERSION=7
matrix:
include:
- rvm: 2.6.2
env:
- MONGOID_VERSION=7
- COVERAGE=true
before_script:
- bundle exec rubocop
- bundle exec danger
after_script:
- if [[ "$TRAVIS_TEST_RESULT" == 0 ]]; then
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;
./cc-test-reporter format-coverage -t simplecov -o coverage/codeclimate.json coverage/.resultset.json;
./cc-test-reporter upload-coverage;
fi
- rvm: ruby-head
- rvm: jruby-head
fast_finish: true
allow_failures:
- rvm: ruby-head
- rvm: jruby-head
bundler_args: --without development