-
Notifications
You must be signed in to change notification settings - Fork 5
/
azure-pipelines.yml
72 lines (59 loc) · 1.66 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# 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
trigger:
- master
pr:
- master
pool:
vmImage: 'windows-2019'
steps:
- task: Npm@1
displayName: 'npm install'
inputs:
verbose: false
- task: Npm@0
displayName: 'install typescript'
inputs:
arguments: '[email protected] --global-style'
- task: Npm@0
displayName: 'install tfx-cli command'
inputs:
arguments: '[email protected] --global'
- task: Npm@1
displayName: Test
inputs:
command: custom
verbose: false
customCommand: test
- task: Npm@1
displayName: Report
inputs:
command: custom
verbose: false
customCommand: 'run report'
- task: PublishTestResults@2
displayName: 'Publish Test Results test-results.xml'
inputs:
testResultsFiles: 'test-results.xml'
- task: PublishCodeCoverageResults@1
displayName: 'Publish code coverage from $(System.DefaultWorkingDirectory)/**/cobertura-coverage.xml'
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/cobertura-coverage.xml'
pathToSources: '$(System.DefaultWorkingDirectory)/Src'
reportDirectory: '$(System.DefaultWorkingDirectory)/.coverage_output'
- task: Npm@1
displayName: Package
inputs:
command: custom
verbose: false
customCommand: 'run build'
- task: CopyFiles@2
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)'
inputs:
Contents: '**/*.vsix'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'