2017-11-28 22:39:18 +08:00
|
|
|
image: Visual Studio 2017
|
|
|
|
|
|
|
|
# Fix line endings in Windows. (runs before repo cloning)
|
|
|
|
init:
|
|
|
|
- git config --global core.autocrlf input
|
|
|
|
|
|
|
|
environment:
|
2018-05-15 00:49:41 +08:00
|
|
|
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
|
2018-08-02 08:09:37 +08:00
|
|
|
matrix:
|
|
|
|
- nodejs_version: 10
|
2017-11-28 22:39:18 +08:00
|
|
|
|
|
|
|
# Finish on first failed build
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
|
|
|
|
platform:
|
|
|
|
- x64
|
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
|
|
|
# Disable Visual Studio build and deploy
|
|
|
|
build: off
|
|
|
|
deploy: off
|
|
|
|
|
|
|
|
install:
|
|
|
|
- ps: Install-Product node $env:nodejs_version $env:platform
|
2018-06-06 21:19:33 +08:00
|
|
|
- yarn install --frozen-lockfile
|
2017-11-28 22:39:18 +08:00
|
|
|
|
|
|
|
test_script:
|
|
|
|
- node --version
|
2017-11-29 22:33:07 +08:00
|
|
|
- yarn lint
|
2018-05-29 22:47:14 +08:00
|
|
|
# - yarn flow-ci
|
2017-11-28 22:39:18 +08:00
|
|
|
- yarn build
|
|
|
|
- yarn test
|
2018-01-07 19:50:24 +08:00
|
|
|
- yarn prettier
|
2017-11-28 22:39:18 +08:00
|
|
|
|
|
|
|
cache:
|
|
|
|
- node_modules
|
|
|
|
- "%LOCALAPPDATA%/Yarn"
|