lighthouse/.travis.yml

55 строки
1.5 KiB
YAML
Исходник Обычный вид История

sudo: required
2016-03-16 03:57:46 +03:00
language: node_js
branches:
only:
- master
matrix:
include:
2017-05-31 03:48:52 +03:00
- node_js: "8"
- node_js: "9"
if: head_branch IS blank AND branch = master
dist: trusty
2016-03-20 02:15:57 +03:00
cache:
yarn: true
directories:
- node_modules
- lighthouse-extension/node_modules
- lighthouse-viewer/node_modules
- /home/travis/.rvm/gems/
install:
# 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
- yarn
# 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
# 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
- yarn build-all
script:
- yarn bundlesize
- yarn lint
- yarn unit:silentcoverage
- yarn type-check
- yarn diff:sample-json
- yarn smoke:silentcoverage
- yarn test-extension
- yarn test-viewer
# _JAVA_OPTIONS is breaking parsing of compiler output. See #3338.
- unset _JAVA_OPTIONS
# FIXME(paulirish): re-enable after a roll of LH->CDT
# - yarn compile-devtools
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/
after_success:
- yarn coveralls
- yarn codecov
2017-06-20 21:31:19 +03:00
addons:
chrome: stable