forked from rdnewman/react_webpack_rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (50 loc) · 1.27 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
branches:
except:
- docs
sudo: required
dist: trusty
language: ruby
addons:
# From some tests it seems you can only have one firefox addon.
# Adding two results in the last one defined being the one installed.
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
- google-chrome-beta
cache:
bundler: true
directories:
- spec/rails3_dummy_app/node_modules
- spec/rails4_dummy_app/node_modules
- spec/rails5_dummy_app/node_modules
- node_modules
matrix:
include:
- rvm: 2.2.4
gemfile: spec/rails5_dummy_app/Gemfile
env: TEST_SUITE=rails5
- rvm: 2.2.4
gemfile: spec/rails4_dummy_app/Gemfile
env: TEST_SUITE=rails4
- rvm: 2.2.4
gemfile: spec/rails3_dummy_app/Gemfile
env: TEST_SUITE=rails3
- rvm: 2.2.4
gemfile: Gemfile
env: TEST_SUITE=gem
- rvm: 2.2.4
env: TEST_SUITE=node
before_install:
- sudo apt-get update -qq
before_script:
- npm install -g npm@^2.0
- npm install -g webpack@^1.12.1
- bundle exec rake setup:$TEST_SUITE
- 'export CHROME_BIN=chromium-browser'
- "export DISPLAY=:99.0" # Setup display for selenium driver
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
script:
- bundle exec rake test:$TEST_SUITE