lighthouse/.appveyor.yml

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

clone_depth: 10
version: "{build}"
branches:
only:
- master
environment:
fast_finish: true
matrix:
- nodejs_version: "10"
platform: x86
build: off
install:
- ps: Install-Product node $env:nodejs_version $env:platform
- npm install yarn -g
2017-04-26 22:40:51 +03:00
- yarn
before_test:
- set "PATH=C:\MinGW\msys\1.0\bin;%PATH%"
- set "CHROME_PATH=%CD%\chrome-win32\chrome.exe"
- bash ./lighthouse-core/scripts/download-chrome.sh
2017-04-26 22:40:51 +03:00
- yarn build-all
test_script:
- node --version
- npm --version
2017-04-26 22:40:51 +03:00
- yarn --version
- which yarn
2017-04-26 22:40:51 +03:00
- yarn lint
- yarn unit-core --runInBand
# 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
- yarn unit-viewer
- yarn type-check
# 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
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
cache:
#- chrome-win32 -> appveyor.yml,package.json
- node_modules -> appveyor.yml,package.json,yarn.lock
- '%LOCALAPPDATA%\Yarn -> appveyor.yml,package.json,yarn.lock'