-
-
Notifications
You must be signed in to change notification settings - Fork 287
Expand file tree
/
Copy path.travis.yml
More file actions
71 lines (62 loc) · 1.82 KB
/
.travis.yml
File metadata and controls
71 lines (62 loc) · 1.82 KB
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
69
70
71
env:
matrix:
- COV=false
global:
- CC_TEST_REPORTER_ID=88e524e8f638efe690def7a6e2c72b1a9db5cdfa74548921b734d609a5858ee5
- 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)
dist: bionic
sudo: required
language: ruby
cache:
bundler: true
directories:
- /home/travis/.rvm/
services:
- redis-server
before_install:
- gem update bundler
- >
if [[ "${COV}" = "true" ]]; then
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter;
chmod +x ./cc-test-reporter;
fi;
before_script:
- if [[ "${COV}" = "true" ]]; then ./cc-test-reporter before-build; fi;
script:
- >
if [[ "${COV}" = "true" ]]; then
bundle exec rubocop -P;
bundle exec reek .;
fi;
bundle exec rspec --require spec_helper --tag ~perf
after_script:
- if [[ "${COV}" = "true" ]]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi;
rvm:
- 2.5.7
matrix:
fast_finish: true
include:
- rvm: jruby-9.2.11.1
gemfile: gemfiles/sidekiq_6.0.gemfile
- rvm: 2.6.5
gemfile: gemfiles/sidekiq_6.0.gemfile
env: COV=true
gemfile:
- gemfiles/sidekiq_4.0.gemfile
- gemfiles/sidekiq_4.1.gemfile
- gemfiles/sidekiq_4.2.gemfile
- gemfiles/sidekiq_5.0.gemfile
- gemfiles/sidekiq_5.1.gemfile
- gemfiles/sidekiq_5.2.gemfile
- gemfiles/sidekiq_6.0.gemfile
- gemfiles/sidekiq_develop.gemfile
notifications:
email:
recipients:
- mikael@mhenrixon.com
slack:
rooms:
secure: B05ZUPdHrhxVnz7Mlpd5KhFH2bdE9ykFRgqLFHV3EcdyWKm85PPgbfl4cNPTFXHHhzk/5E9h5hwEXpicJYSsq6lhU8i3WesidrA+GHzrpesowTHpvtJMxIjsE1Tavug0xQs/bca72yN2t51m8UiD1scOSIuvSOCNkuKkn3+rSIo=
on_start: never
on_failure: always
on_success: change