forked from goldstar/rails_email_preview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (42 loc) · 970 Bytes
/
.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
language: ruby
os: linux
rvm:
- 2.3.8
- jruby-9
- rbx-3
gemfile:
- spec/gemfiles/rails_4_2.gemfile
- spec/gemfiles/rails_5_0.gemfile
- spec/gemfiles/rails_5_2.gemfile
git:
submodules: false
env:
global:
- TRAVIS=1
jobs:
allow_failures:
- rvm: rbx-3
exclude:
- rvm: jruby-9
gemfile: spec/gemfiles/rails_4_2.gemfile
cache: bundler
bundler_args: --path ../../vendor/bundle --without debug
before_install:
# Rails 4.x requires bundler version < 2.0.
- >
if [[ $BUNDLE_GEMFILE == "${PWD}/spec/gemfiles/rails_4_2.gemfile" ]]; then
"find /home/travis/.rvm/rubies -wholename '*default/bundler-*.gemspec' -delete"
gem install bundler --version='~> 1.17'
bundler --version
fi
script:
- >
if [[ "$(rvm current)" = "ruby-"* ]]; then
COVERAGE=1 bundle exec rspec --format d
else
bundle exec rspec --format d
fi
- >
if [[ "$(rvm current)" = "ruby-"* ]]; then
bundle exec codeclimate-test-reporter
fi