Skip to content

Commit 448d914

Browse files
committed
ci: tests not running in travis
1 parent a65ace2 commit 448d914

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed

.travis.yml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
dist: trusty
22
sudo: false
3+
34
language: node_js
45
node_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+
1419
install:
15-
- npm install --no-progress
20+
- npm install
21+
1622
script:
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

0 commit comments

Comments
 (0)