File tree Expand file tree Collapse file tree 1 file changed +19
-13
lines changed Expand file tree Collapse file tree 1 file changed +19
-13
lines changed Original file line number Diff line number Diff line change 11dist : trusty
22sudo : false
3+
34language : node_js
45node_js :
56 - " 8"
6- os :
7- - linux
8- before_install :
9- # Use a virtual display.
10- - export DISPLAY=:99.0
11- - sh -e /etc/init.d/xvfb start
12- # Install latest chrome.
13- - export CHROME_BIN=chromium-browser
7+
8+ addons :
9+ apt :
10+ sources :
11+ - google-chrome
12+ packages :
13+ - google-chrome-stable
14+
15+ cache :
16+ directories :
17+ - ./node_modules
18+
1419install :
15- - npm install --no-progress
20+ - npm install
21+
1622script :
17- - npm run lint
18- - npm run test -- --no-progress --code-coverage --single-run -- browser=ChromeNoSandbox
19- - npm run e2e -- --no-progress
20- - npm run coverage
23+ # Use Chromium instead of Chrome.
24+ - export CHROME_BIN=chromium- browser
25+ - xvfb-run -a npm run test -- --no-progress --single-run --code-coverage --browser=ChromeNoSandbox
26+ - xvfb-run -a npm run e2e -- --no-progress
You can’t perform that action at this time.
0 commit comments