41 lines
640 B
YAML
41 lines
640 B
YAML
image: Visual Studio 2017
|
|
|
|
# Fix line endings in Windows. (runs before repo cloning)
|
|
init:
|
|
- git config --global core.autocrlf input
|
|
|
|
environment:
|
|
nodejs_version: 8
|
|
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
|
|
|
|
# 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
|
|
- yarn lint
|
|
# - yarn flow-ci
|
|
- yarn build
|
|
- yarn test
|
|
- yarn prettier
|
|
|
|
cache:
|
|
- node_modules
|
|
- "%LOCALAPPDATA%/Yarn"
|