forked from vicentllongo/simplecov-json
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (58 loc) · 1.55 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
os: linux
dist: focal
group: edge
arch: arm64-graviton2
virt: lxd
env:
jobs:
- COV=false
global:
- CC_TEST_REPORTER_ID=03a9a72ff2d5917bfce0f17e453dc261874a4b8ebb4a29846d8eaddc89bbeb54
- GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
language: ruby
cache:
bundler: true
directories:
- /home/travis/.rvm/
before_install:
- gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
- gem update --system
- gem install bundler rubocop-mhenrixon
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
install:
- bundle install --jobs=$(nproc) --retry=$(nproc)
before_script:
- ./cc-test-reporter before-build
script:
- >
if [[ "${COV}" = "true" ]]; then
bin/reek;
bin/rubocop;
fi;
- bin/rspec
after_script:
- if [[ "${COV}" = "true" ]]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi;
rvm:
- 2.5.8
- 2.7.2
- 2.6.6
gemfile:
- gemfiles/simplecov_0.14.gemfile
- gemfiles/simplecov_0.15.gemfile
- gemfiles/simplecov_0.16.gemfile
- gemfiles/simplecov_0.17.gemfile
- gemfiles/simplecov_0.18.gemfile
- gemfiles/simplecov_0.19.gemfile
- gemfiles/simplecov_0.20.gemfile
- gemfiles/simplecov_develop.gemfile
jobs:
fast_finish: true
include:
- rvm: 2.7.1
env: COV=true
gemfile: gemfiles/simplecov_0.21.gemfile
notifications:
email:
recipients: