forked from shakacode/react_on_rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (57 loc) · 2.14 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
sudo: required
language: ruby
rvm:
# Rails 5 requires 2.2
- 2.3.1
- 2.4.1
- 2.5.0
- 2.2.6
services:
- docker
cache:
bundler: true
directories:
- node_modules # NPM packages
yarn: true
gemfile:
- spec/dummy/Gemfile
- spec/dummy_no_webpacker/Gemfile.rails32
env:
global:
- RAILS_ENV=test
- DRIVER=selenium_chrome
- CHROME_BIN=/usr/bin/google-chrome
- USE_COVERALLS=TRUE
before_install:
- sudo apt-get update
- sudo apt-get install -y xvfb libappindicator1 fonts-liberation
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen scn 1600x1200x16"
install:
- travis_retry gem install bundler
- travis_retry nvm install 9.11.1
- node -v
- travis_retry npm i -g [email protected]
- travis_retry yarn global add babel-cli
- travis_retry bundle install
- travis_retry yarn
- travis_retry yarn run build
- bundle exec rake prepare_for_ci
before_script:
- "export DISPLAY=:99"
script:
- bundle exec rake
matrix:
exclude:
- gemfile: spec/dummy_no_webpacker/Gemfile.rails32
rvm: 2.3.1
- gemfile: spec/dummy_no_webpacker/Gemfile.rails32
rvm: 2.4.1
- gemfile: spec/dummy_no_webpacker/Gemfile.rails32
rvm: 2.5.0
- gemfile: spec/dummy/Gemfile
rvm: 2.2.6
notifications:
slack:
secure: LfcUk4AJ4vAxWwRIyw4tFh8QNbYefMwfG/oLfsN3CdRMWMOtCOHR1GGsRhAOlfVVJ/FvHqVqWj5gK7z7CaO5Uvl7rD3/zJ8QzExKx/iH9yWj55iIPuKLzwFNnBwRpFW/cqyU2lFPPRxGD50BUn3c+qybkuSqtKZ6qtTowwqlxLa5iyM3N95aZp7MEIKCP7cPcnHfLbJyP8wBpotp/rtw62eXM2HIRJJwgjcp+n+My7VFR9DnBXNFf6R91aZHM4U4cHHDbu15HFtH8honVrzK1JQdyqMNHga+j04dFuaS7z9Q369/hsELMOBp/227+Pz7ZRfWZFK4UASguOvyeX7RmGTRpTuWLm1XJeUzfsPZVROecaSVQBve+U7F12yKqilt97QlvRXn2EGyBILqvxtFNNR4S9kgAf72/6EFgiM1TKq7i9zy6lVOnagU2+7amq7UeopX1uoFsUfNKMR7YbgV1WjF0IK95UP0b0/7ZOJlPYgi5zzkQi129qAFWSMmxGk+ZpsttHh/tjJtvAh0A3mHq/zb5w4ub/MbSyZqeDUNgGj72QArOWUFSAStQT1ybsVLeDoKPgOvVq7OV1D64rpcHjBXcqOCit8tDZ+TqkFhcYJo2cITSaqE4zJXn+4F5s7So5O8CyfKYQq+kFJCooYGmfgTUckJpGl7eIvKmL4TN9Q=