forked from translation/rails
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
57 lines (46 loc) · 1.37 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
env:
global:
- CC_TEST_REPORTER_ID=1ec0e82ac7a13e879f71d36abbf09c7c691c71ec58a8b7f74beef6086e3b65db
language: ruby
# 2.0 has only one test not passing
# (TranslationIO::YAMLConversion#get_yaml_data_from_flat_translations works with weird not-escaped code)
rvm:
- 2.1
- 2.2
- 2.3
- 2.4
- 2.5
- 2.6
- 2.7
- 3.0
- jruby
gemfile:
- gemfiles/lowest.gemfile
- gemfiles/latest.gemfile
matrix:
exclude:
# Ruby > 2.6 removed BigDecimal.new which was used on Rails 4.1 (removed with Rails 4.2 though)
- rvm: 2.7
gemfile: gemfiles/lowest.gemfile
- rvm: 3.0
gemfile: gemfiles/lowest.gemfile
sudo: false
# https://docs.travis-ci.com/user/languages/ruby/
# To stay on bundler 1 for compatibility with rails 4.1
before_install:
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
- gem install bundler -v '1.17.3'
# Override to be able to force bundler 1, needed for lowest.gemfile
install: bundle _1.17.3_ install --jobs=3 --retry=3
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 _1.17.3_ exec rspec
after_script:
- ./cc-test-reporter after-build -t simplecov --exit-code $TRAVIS_TEST_RESULT
notifications:
email:
recipients: