Skip to content

Commit e666eba

Browse files
committed
[ci] update test script
* pin to defined distribution version * fix required services * fix wrong path to `ng`
1 parent 25c6836 commit e666eba

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

.travis.yml

+15-17
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
language: node_js
2-
sudo: required
3-
node_js:
4-
- node
5-
6-
before_script:
7-
- "sudo chown root /opt/google/chrome/chrome-sandbox"
8-
- "sudo chmod 4755 /opt/google/chrome/chrome-sandbox"
2+
dist: bionic
93

10-
before_install:
11-
- export CHROME_BIN=chromium-browser
12-
- export DISPLAY=:99.0
13-
- sh -e /etc/init.d/xvfb start
4+
services:
5+
- xvfb # required for headless testing
146

15-
script: # the build step
16-
- node_modules/.bin/ng test --watch=false
7+
node_js:
8+
- lts/* # use lts version of node
179

10+
addons:
11+
chrome: stable
1812

1913
cache:
20-
yarn: true
21-
directories:
22-
- ./node_modules
23-
- ./.chrome/chromium
14+
- npm
15+
16+
install:
17+
- npm set progress=false
18+
- npm install
19+
20+
script:
21+
- ./node_modules/.bin/ng test --watch=false # run the test

0 commit comments

Comments
 (0)