2016-12-23 20:49:44 +03:00
|
|
|
clone_depth: 10
|
|
|
|
|
|
|
|
version: "{build}"
|
|
|
|
|
2018-02-09 18:11:49 +03:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
2016-12-23 20:49:44 +03:00
|
|
|
environment:
|
2017-05-30 08:27:14 +03:00
|
|
|
fast_finish: true
|
2016-12-23 20:49:44 +03:00
|
|
|
matrix:
|
2019-04-10 21:18:27 +03:00
|
|
|
- nodejs_version: "10"
|
2016-12-23 20:49:44 +03:00
|
|
|
platform: x86
|
|
|
|
|
|
|
|
build: off
|
|
|
|
|
|
|
|
install:
|
|
|
|
- ps: Install-Product node $env:nodejs_version $env:platform
|
2017-05-30 08:27:14 +03:00
|
|
|
- npm install yarn -g
|
2017-04-26 22:40:51 +03:00
|
|
|
- yarn
|
2016-12-23 20:49:44 +03:00
|
|
|
|
|
|
|
before_test:
|
2017-01-29 13:46:42 +03:00
|
|
|
- set "PATH=C:\MinGW\msys\1.0\bin;%PATH%"
|
2019-06-17 17:21:25 +03:00
|
|
|
- set "CHROME_PATH=%CD%\chrome-win32\chrome.exe"
|
2017-01-29 13:46:42 +03:00
|
|
|
- bash ./lighthouse-core/scripts/download-chrome.sh
|
2017-04-26 22:40:51 +03:00
|
|
|
- yarn build-all
|
2016-12-23 20:49:44 +03:00
|
|
|
|
|
|
|
test_script:
|
|
|
|
- node --version
|
|
|
|
- npm --version
|
2017-04-26 22:40:51 +03:00
|
|
|
- yarn --version
|
2017-05-30 08:27:14 +03:00
|
|
|
- which yarn
|
2017-04-26 22:40:51 +03:00
|
|
|
- yarn lint
|
2018-06-29 04:45:18 +03:00
|
|
|
- yarn unit-core --runInBand
|
2019-08-06 00:04:31 +03:00
|
|
|
# Appveyor protocol timeouts are unusually common.
|
|
|
|
# We retry our smoketests 3 times for this reason, so do the same for CLI tests that launch Chrome.
|
|
|
|
- yarn unit-cli || yarn unit-cli || yarn unit-cli
|
2018-06-29 04:45:18 +03:00
|
|
|
- yarn unit-viewer
|
2017-11-21 05:10:03 +03:00
|
|
|
- yarn type-check
|
2019-11-05 21:31:46 +03:00
|
|
|
# run smoke tests serially, trying up to three times to prevent flakes.
|
|
|
|
# FIXME: Exclude Appveyor from running `lantern` smoketest until we fix the flake.
|
|
|
|
- yarn smoke -j=1 --retries=2 a11y errors oopif pwa pwa2 pwa3 dbw redirects seo offline byte perf metrics
|
2016-12-23 20:49:44 +03:00
|
|
|
|
2020-02-25 03:14:46 +03:00
|
|
|
on_success:
|
|
|
|
# Remove module resolution symlinks; this avoids 'Unable to save cache'
|
|
|
|
# errors when appveyor runs 7z.exe to save the build cache
|
|
|
|
- yarn unlink lighthouse
|
|
|
|
- yarn unlink
|
|
|
|
|
2016-12-23 20:49:44 +03:00
|
|
|
cache:
|
|
|
|
#- chrome-win32 -> appveyor.yml,package.json
|
2017-05-28 01:37:25 +03:00
|
|
|
- node_modules -> appveyor.yml,package.json,yarn.lock
|
|
|
|
- '%LOCALAPPDATA%\Yarn -> appveyor.yml,package.json,yarn.lock'
|