forked from kevdonk/devsummit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
23 lines (23 loc) · 944 Bytes
/
.travis.yml
File metadata and controls
23 lines (23 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
language: node_js
matrix:
include:
- node_js: "node"
sudo: required
dist: trusty
before_script:
- mkdir -p vendors
- wget https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.40.zip -nv
- unzip -qd vendors google_appengine_1.9.40.zip
- ./vendors/google_appengine/dev_appserver.py --skip_sdk_update_check --port=8090 . &
- npm install -g GoogleChrome/lighthouse
- export DISPLAY=:99.0
- export LIGHTHOUSE_CHROMIUM_PATH="$(pwd)/chrome-linux/chrome"
- sh -e /etc/init.d/xvfb start
- npm explore -g lighthouse -- ./lighthouse-core/scripts/download-chrome.sh
- mv $(npm root -g)/lighthouse/chrome-linux .
- $LIGHTHOUSE_CHROMIUM_PATH --version
- npm run build
- (cd $(npm root -g)/lighthouse/lighthouse-cli && npm install && npm run build)
script:
- lighthouse --output=json http://localhost:8090/devsummit --output-path=./validate/log.json
- node ./validate/checklog.js ./validate/log.json