forked from reactjs/react-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (68 loc) · 2.28 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
69
70
71
72
language: ruby
sudo: required
dist: trusty
cache:
bundler: true
yarn: true
rvm:
- 2.3.0
- 2.1
- jruby-9.0.1.0
gemfile:
# These have webpacker:
- gemfiles/rails_4.2_sprockets_4.gemfile
- gemfiles/rails_5_no_sprockets_webpacker.gemfile
# These don't have webpacker:
- gemfiles/rails_3.2.gemfile
- gemfiles/rails_4.0.5.gemfile
- gemfiles/rails_4.0_with_therubyracer.gemfile
- gemfiles/rails_4.1.gemfile
- gemfiles/rails_4.2_sprockets_2.gemfile
- gemfiles/rails_4.2_sprockets_3.gemfile
- gemfiles/rails_5_no_sprockets.gemfile
- gemfiles/rails_5.1_sprockets_4.gemfile
matrix:
fast_finish: true
exclude:
- rvm: 2.1
gemfile: gemfiles/rails_3.2.gemfile
- rvm: 2.1
gemfile: rails_4.0.5.gemfile
- rvm: 2.1
gemfile: rails_4.0_with_therubyracer.gemfile
- rvm: 2.1
gemfile: gemfiles/rails_4.2_sprockets_2.gemfile
- rvm: 2.1
gemfile: gemfiles/rails_4.2_sprockets_3.gemfile
- rvm: 2.1
gemfile: gemfiles/rails_4.2_sprockets_4.gemfile
- rvm: 2.1
gemfile: gemfiles/rails_5_no_sprockets_webpacker.gemfile
- rvm: 2.1
gemfile: gemfiles/rails_5_no_sprockets.gemfile
- rvm: 2.1
gemfile: gemfiles/rails_5.1_sprockets_4.gemfile
- rvm: jruby-9.0.1.0
gemfile: gemfiles/rails_4.0.gemfile
- rvm: jruby-9.0.1.0
gemfile: rails_4.0_with_therubyracer.gemfile
- rvm: jruby-9.0.1.0
gemfile: gemfiles/rails_4.1.gemfile
- rvm: jruby-9.0.1.0
gemfile: gemfiles/rails_4.2_sprockets_2.gemfile
- rvm: jruby-9.0.1.0
gemfile: gemfiles/rails_5_no_sprockets_webpacker.gemfile
allow_failures:
- rvm: jruby-9.0.1.0
before_install:
- nvm install 7.8.0 && nvm use 7.8.0
- mkdir travis-phantomjs
- wget https://rmosolgo.github.io/assets/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
- tar -xvf $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis-phantomjs
- export PATH=$PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH
- phantomjs --version
# Repo for Yarn
- sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg
- echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- sudo apt-get update -qq
- sudo apt-get install -y -qq yarn