2016-03-16 03:57:46 +03:00
|
|
|
language: node_js
|
2016-07-12 03:35:56 +03:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- node_js: "4.3.2"
|
|
|
|
- node_js: "5.0"
|
|
|
|
- node_js: "node"
|
2016-04-29 04:46:12 +03:00
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
2016-03-20 02:15:57 +03:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- node_modules
|
2016-03-26 04:49:27 +03:00
|
|
|
- chrome-linux
|
2016-07-26 22:19:28 +03:00
|
|
|
- lighthouse-extension/node_modules
|
2016-03-16 05:16:50 +03:00
|
|
|
before_script:
|
2016-10-19 15:50:52 +03:00
|
|
|
- npm i -g typescript@2.0
|
2016-07-26 22:19:28 +03:00
|
|
|
- npm --prefix ./lighthouse-extension install ./lighthouse-extension
|
2016-03-16 05:16:50 +03:00
|
|
|
- export DISPLAY=:99.0
|
2016-04-04 18:24:48 +03:00
|
|
|
- export LIGHTHOUSE_CHROMIUM_PATH="$(pwd)/chrome-linux/chrome"
|
2016-03-16 05:16:50 +03:00
|
|
|
- sh -e /etc/init.d/xvfb start
|
2016-06-14 14:10:19 +03:00
|
|
|
- ./lighthouse-core/scripts/download-chrome.sh
|
2016-10-19 15:50:52 +03:00
|
|
|
- cd lighthouse-cli && tsc && cd ..
|
2016-04-05 12:42:49 +03:00
|
|
|
script:
|
2016-07-26 00:07:53 +03:00
|
|
|
- if [[ $(node -v) =~ ^v4.* ]]; then export __node_harmony=--harmony; fi
|
2016-04-09 16:27:44 +03:00
|
|
|
- npm run lint
|
2016-07-26 00:07:53 +03:00
|
|
|
- npm run unit
|
2016-04-09 16:27:44 +03:00
|
|
|
- npm run closure
|
2016-06-15 21:37:52 +03:00
|
|
|
- npm run smoke
|
2016-10-25 22:00:36 +03:00
|
|
|
- npm run smokehouse
|
2016-06-15 21:37:52 +03:00
|
|
|
- cd lighthouse-extension
|
2016-06-14 14:10:19 +03:00
|
|
|
- gulp build
|
2016-10-03 01:25:27 +03:00
|
|
|
- cd ..
|
|
|
|
after_success:
|
|
|
|
- npm run coveralls
|