2018-01-10 03:52:03 +03:00
|
|
|
sudo: required
|
2016-03-16 03:57:46 +03:00
|
|
|
language: node_js
|
2018-01-31 05:56:47 +03:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2016-07-12 03:35:56 +03:00
|
|
|
matrix:
|
|
|
|
include:
|
2017-05-31 03:48:52 +03:00
|
|
|
- node_js: "8"
|
2018-01-05 22:14:28 +03:00
|
|
|
- node_js: "9"
|
2018-01-31 05:56:47 +03:00
|
|
|
if: head_branch IS blank AND branch = master
|
2016-04-29 04:46:12 +03:00
|
|
|
dist: trusty
|
2016-03-20 02:15:57 +03:00
|
|
|
cache:
|
2017-04-26 21:22:08 +03:00
|
|
|
yarn: true
|
2017-04-26 02:47:51 +03:00
|
|
|
directories:
|
|
|
|
- node_modules
|
|
|
|
- lighthouse-extension/node_modules
|
|
|
|
- lighthouse-viewer/node_modules
|
2017-06-19 21:03:15 +03:00
|
|
|
- /home/travis/.rvm/gems/
|
2016-11-22 02:38:42 +03:00
|
|
|
install:
|
2018-03-21 02:24:09 +03:00
|
|
|
# if our e2e tests fail in the future it might be that we are not compatible
|
|
|
|
# with the latest puppeteer api so we probably need to run on chromimum
|
|
|
|
# @see https://github.com/GoogleChrome/lighthouse/pull/4640/files#r171425004
|
|
|
|
- export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
|
2017-06-05 21:23:58 +03:00
|
|
|
- yarn
|
2017-06-20 07:52:59 +03:00
|
|
|
# travis can't handle the parallel install (without caches)
|
|
|
|
- yarn run install-all:task:windows
|
2016-03-16 05:16:50 +03:00
|
|
|
before_script:
|
|
|
|
- export DISPLAY=:99.0
|
2018-03-21 02:24:09 +03:00
|
|
|
# see comment above about puppeteer
|
|
|
|
- export CHROME_PATH="$(which google-chrome-stable)"
|
2016-03-16 05:16:50 +03:00
|
|
|
- sh -e /etc/init.d/xvfb start
|
2017-04-26 22:41:01 +03:00
|
|
|
- yarn build-all
|
2016-04-05 12:42:49 +03:00
|
|
|
script:
|
2017-09-22 23:39:39 +03:00
|
|
|
- yarn bundlesize
|
2017-04-26 22:41:01 +03:00
|
|
|
- yarn lint
|
|
|
|
- yarn unit
|
2017-11-21 05:10:03 +03:00
|
|
|
- yarn type-check
|
2017-04-26 22:41:01 +03:00
|
|
|
- yarn closure
|
|
|
|
- yarn smoke
|
|
|
|
- yarn smokehouse
|
2018-03-21 02:24:09 +03:00
|
|
|
- yarn test-extension
|
2017-09-18 23:38:29 +03:00
|
|
|
# _JAVA_OPTIONS is breaking parsing of compiler output. See #3338.
|
|
|
|
- unset _JAVA_OPTIONS
|
2018-03-24 02:20:29 +03:00
|
|
|
# FIXME(paulirish): re-enable after a roll of LH->CDT
|
|
|
|
# - yarn compile-devtools
|
2017-06-19 21:03:15 +03:00
|
|
|
before_cache:
|
|
|
|
# the `yarn compile-devtools` task adds these to node_modules, which slows down caching
|
|
|
|
- rm -rf ./node_modules/temp-devtoolsfrontend/
|
|
|
|
- rm -rf ./node_modules/temp-devtoolsprotocol/
|
2016-10-03 01:25:27 +03:00
|
|
|
after_success:
|
2017-11-21 05:10:03 +03:00
|
|
|
- yarn coveralls
|
2017-06-20 21:31:19 +03:00
|
|
|
addons:
|
|
|
|
chrome: stable
|