forked from carlowahlstedt/NewmanPostman_VSTS_Task
-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
62 lines (50 loc) · 1.59 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
resources:
- repo: self
clean: true
queue:
name: Hosted VS2017
demands: npm
#Your build pipeline references an undefined variable named ‘Extension.OutputPath’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972
steps:
- task: Npm@1
displayName: 'npm install'
inputs:
verbose: false
- task: Npm@1
displayName: 'npm install-task-lib'
inputs:
command: custom
verbose: false
customCommand: 'run install-task-lib'
# - task: Npm@1
# displayName: 'npm test'
# inputs:
# command: custom
# verbose: false
# customCommand: 'run test'
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit' # Options: JUnit, NUnit, VSTest, xUnit
testResultsFiles: '**/TEST-*.xml'
#searchFolder: '$(System.DefaultWorkingDirectory)' # Optional
#mergeTestResults: false # Optional
#failTaskOnFailedTests: false # Optional
#testRunTitle: # Optional
#buildPlatform: # Optional
#buildConfiguration: # Optional
#publishRunAttachments: true # Optional
- task: Npm@1
displayName: 'npm compile'
inputs:
command: custom
verbose: false
customCommand: 'run compile'
- task: ms-devlabs.vsts-developer-tools-build-tasks.package-extension-build-task.PackageVSTSExtension@1
displayName: 'Package Extension: '
inputs:
outputPath: 'drop\output.vsix'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'
inputs:
PathtoPublish: '$(Extension.OutputPath)'
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')