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
|
2018-04-06 01:50:50 +03:00
|
|
|
- yarn unit:silentcoverage
|
2017-11-21 05:10:03 +03:00
|
|
|
- yarn type-check
|
2018-04-13 03:09:27 +03:00
|
|
|
- yarn diff:sample-json
|
2018-04-14 05:30:08 +03:00
|
|
|
- yarn smoke:silentcoverage
|
2018-03-21 02:24:09 +03:00
|
|
|
- yarn test-extension
|
2018-04-26 05:08:08 +03:00
|
|
|
- yarn test-viewer
|
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
|
2018-04-14 05:30:08 +03:00
|
|
|
- yarn codecov
|
2017-06-20 21:31:19 +03:00
|
|
|
addons:
|
|
|
|
chrome: stable
|