forked from rails/webpacker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (55 loc) · 1.39 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
language: ruby
dist: xenial
before_install:
- gem install rubygems-update -v 3.0.6 && update_rubygems
# Rails 4.2 doesn't support bundler 2.0, so we need to lock bundler to
# v1.17.3. This is just for Ruby 2.5 which ships with bundler 2.x on Travis
# CI while Ruby 2.6 does not.
# https://github.com/travis-ci/travis-rubies/issues/57#issuecomment-458981237
- yes | rvm @global do gem install bundler -v 1.17.3 || true
rvm:
- 2.3.8
- 2.4.6
- 2.5.5
- 2.6.3
- ruby-head
gemfile:
- gemfiles/Gemfile-rails.4.2.x
- gemfiles/Gemfile-rails.5.0.x
- gemfiles/Gemfile-rails.5.1.x
- gemfiles/Gemfile-rails.5.2.x
- gemfiles/Gemfile-rails.6.0.x
- gemfiles/Gemfile-rails-edge
cache:
bundler: true
directories:
- node_modules
yarn: true
install:
- bundle install --jobs 3 --retry 3
- nvm install 10
- node -v
- npm i -g yarn
- yarn
script:
- yarn lint
- yarn test
- bundle exec rubocop
- bundle exec rake test
matrix:
allow_failures:
- gemfile: gemfiles/Gemfile-rails-edge
- rvm: ruby-head
exclude:
- rvm: 2.3.8
gemfile: gemfiles/Gemfile-rails-edge
- rvm: 2.4.6
gemfile: gemfiles/Gemfile-rails-edge
- rvm: 2.5.5
gemfile: gemfiles/Gemfile-rails-edge
- rvm: ruby-head
gemfile: gemfiles/Gemfile-rails.4.2.x
- rvm: 2.3.8
gemfile: gemfiles/Gemfile-rails.6.0.x
- rvm: 2.4.6
gemfile: gemfiles/Gemfile-rails.6.0.x