forked from GoogleChrome/lighthouse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (40 loc) · 1012 Bytes
/
.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
language: node_js
matrix:
include:
- node_js: "4.3.2"
- node_js: "5"
- node_js: "6"
- node_js: "7"
sudo: required
dist: trusty
cache:
directories:
- node_modules
- chrome-linux
- lighthouse-extension/node_modules
- lighthouse-viewer/node_modules
install:
- npm install
before_script:
- npm i -g [email protected]
- npm --prefix ./lighthouse-extension install ./lighthouse-extension
- npm --prefix ./lighthouse-viewer install ./lighthouse-viewer
- export DISPLAY=:99.0
- export LIGHTHOUSE_CHROMIUM_PATH="$(pwd)/chrome-linux/chrome"
- sh -e /etc/init.d/xvfb start
- ./lighthouse-core/scripts/download-chrome.sh
- cd lighthouse-cli && tsc && cd ..
script:
- if [[ $(node -v) =~ ^v4.* ]]; then export __node_harmony=--harmony; fi
- npm run lint
- npm run unit
- npm run smoke
- npm run smokehouse
- cd lighthouse-extension
- gulp build -- $__node_harmony
- cd ..
- cd lighthouse-viewer
- gulp
- cd ..
after_success:
- npm run coveralls