OCR-Form-Tools/azure-pipelines.yml

33 строки
625 B
YAML

# Node.js with React
# Build a Node.js project that uses React.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: |
npm install
npm run tslint
if [ $? -ne 0 ]; then
exit 1
fi
npm run compile
if [ $? -ne 0 ]; then
exit 1
fi
npm run build
if [ $? -ne 0 ]; then
exit 1
fi
displayName: 'npm install and build'