2016-03-16 03:57:46 +03:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
2016-04-04 18:24:48 +03:00
|
|
|
- "5.0"
|
2016-03-26 03:54:10 +03:00
|
|
|
- "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-04-05 12:42:49 +03:00
|
|
|
- extension/node_modules
|
2016-03-16 05:16:50 +03:00
|
|
|
before_script:
|
2016-04-05 12:42:49 +03:00
|
|
|
- npm --prefix ./extension install ./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-04-24 04:42:06 +03:00
|
|
|
- ./scripts/download-chrome.sh
|
2016-05-28 02:46:36 +03:00
|
|
|
- start-stop-daemon --start --background --exec $(pwd)/scripts/launch-chrome.sh
|
2016-03-16 05:16:50 +03:00
|
|
|
- sleep 5
|
2016-04-05 12:42:49 +03:00
|
|
|
script:
|
2016-04-09 16:27:44 +03:00
|
|
|
- npm run lint
|
|
|
|
- npm run unit
|
|
|
|
- npm run closure
|
2016-04-13 06:37:37 +03:00
|
|
|
- npm run smoke
|
2016-04-05 12:42:49 +03:00
|
|
|
- (cd extension && gulp build)
|
2016-05-27 10:58:28 +03:00
|
|
|
- npm run coveralls
|