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
|
|
|
nodejs_version: 8
|
|
|
|
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
|
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
|
|
|
|
- yarn install
|
|
|
|
|
|
|
|
test_script:
|
|
|
|
- node --version
|
2017-11-29 22:33:07 +08:00
|
|
|
- yarn lint
|
2018-05-22 01:53:00 +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"
|