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:
|
2019-07-18 22:07:29 +03:00
|
|
|
- node_js: "12"
|
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
|
2018-06-16 02:29:28 +03:00
|
|
|
- lantern-data
|
2020-04-23 02:35:55 +03:00
|
|
|
- lighthouse-core/scripts/legacy-javascript/variants
|
2017-06-19 21:03:15 +03:00
|
|
|
- /home/travis/.rvm/gems/
|
2016-11-22 02:38:42 +03:00
|
|
|
install:
|
2019-09-11 21:25:28 +03:00
|
|
|
# Ensure we have the latest Chrome stable.
|
|
|
|
- google-chrome-stable --version
|
2019-10-25 00:52:08 +03:00
|
|
|
# We used to set PUPPETEER_SKIP_CHROMIUM_DOWNLOAD, but we don't want to anymore.
|
|
|
|
# Explicitly unset b/c environment variables seem to linger in travis.
|
|
|
|
# see https://github.com/GoogleChrome/lighthouse/pull/9877#discussion_r338389765
|
|
|
|
- unset PUPPETEER_SKIP_CHROMIUM_DOWNLOAD
|
2019-07-13 03:33:01 +03:00
|
|
|
- yarn --frozen-lockfile
|
2016-03-16 05:16:50 +03:00
|
|
|
before_script:
|
2018-03-21 02:24:09 +03:00
|
|
|
# see comment above about puppeteer
|
|
|
|
- export CHROME_PATH="$(which google-chrome-stable)"
|
2019-04-30 21:32:55 +03:00
|
|
|
# Print out the Chrome version so we know what we're working with
|
2019-04-24 23:28:02 +03:00
|
|
|
- google-chrome-stable --version
|
2017-04-26 22:41:01 +03:00
|
|
|
- yarn build-all
|
2016-04-05 12:42:49 +03:00
|
|
|
script:
|
2018-07-02 20:18:39 +03:00
|
|
|
- yarn diff:sample-json
|
2017-04-26 22:41:01 +03:00
|
|
|
- yarn lint
|
2020-04-23 02:35:55 +03:00
|
|
|
- yarn test-legacy-javascript
|
2019-03-12 22:58:52 +03:00
|
|
|
- yarn unit:cicoverage
|
2017-11-21 05:10:03 +03:00
|
|
|
- yarn type-check
|
2019-03-12 22:58:52 +03:00
|
|
|
- yarn smoke:cicoverage
|
2018-10-26 02:11:04 +03:00
|
|
|
- yarn test-clients
|
2018-04-26 05:08:08 +03:00
|
|
|
- yarn test-viewer
|
2020-11-14 00:30:15 +03:00
|
|
|
- yarn test-treemap
|
2018-06-16 02:29:28 +03:00
|
|
|
- yarn test-lantern
|
2019-12-14 04:46:37 +03:00
|
|
|
- yarn test-bundle
|
2018-07-19 20:15:27 +03:00
|
|
|
- yarn i18n:checks
|
2019-09-26 02:35:36 +03:00
|
|
|
- yarn dogfood-lhci
|
2019-11-21 02:20:22 +03:00
|
|
|
- yarn test-docs
|
2020-02-19 06:21:38 +03:00
|
|
|
|
|
|
|
# Fail if any changes were written to source files (ex, from: build/build-cdt-lib.js).
|
|
|
|
- git diff --exit-code
|
2017-06-19 21:03:15 +03:00
|
|
|
before_cache:
|
2019-03-06 22:59:12 +03:00
|
|
|
# nyc, jest and other projects store files in here. They mess up the travis build cache.
|
|
|
|
- rm -rf ./node_modules/.cache/
|
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
|
2019-09-11 21:25:28 +03:00
|
|
|
services:
|
|
|
|
- xvfb
|