Merge pull request #62 from Microsoft/azure-pipelines-integration
Set up CI with Azure Pipelines
This commit is contained in:
Коммит
9bc1ee96d5
|
@ -0,0 +1,32 @@
|
|||
# Node.js
|
||||
# Build a general Node.js project with npm.
|
||||
# Add steps that analyze code, save build artifacts, deploy, and more:
|
||||
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
|
||||
|
||||
pr:
|
||||
- master
|
||||
|
||||
pool:
|
||||
vmImage: 'Ubuntu-16.04'
|
||||
|
||||
steps:
|
||||
- task: NodeTool@0
|
||||
inputs:
|
||||
versionSpec: '8.x'
|
||||
displayName: 'Install Node.js'
|
||||
|
||||
- script: |
|
||||
npm install
|
||||
displayName: 'Install npm dependencies'
|
||||
|
||||
- script: |
|
||||
npm run lint
|
||||
displayName: 'Linting code'
|
||||
|
||||
- script: |
|
||||
npm run test
|
||||
displayName: 'Running unit tests with coverage statistics'
|
||||
|
||||
- script: |
|
||||
npm run build:prod
|
||||
displayName: 'Building the extension'
|
Загрузка…
Ссылка в новой задаче