This repository has been archived by the owner on Jun 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathazure-pipelines.yml
63 lines (53 loc) · 1.83 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
queue:
name: Hosted
demands: npm
name: '$(ProductMajor).$(ProductMinor)$(Rev:.r)'
steps:
- task: Npm@1
displayName: 'Install NPM Dependencies - npm install'
inputs:
workingDir: CountdownWidget/CountdownWidget
verbose: false
- task: Npm@0
displayName: 'Compile extension - npm run build'
inputs:
cwd: CountdownWidget/CountdownWidget
command: run
arguments: build
- task: Npm@0
displayName: 'Run unit tests - npm run tests'
inputs:
cwd: CountdownWidget/CountdownWidget
command: run
arguments: test
- task: PublishTestResults@2
displayName: 'Publish Test Results'
inputs:
testResultsFiles: '**\reportTests\TEST-*.xml'
mergeTestResults: true
condition: succeededOrFailed()
- task: PublishCodeCoverageResults@1
displayName: 'Publish code coverage'
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(Build.SourcesDirectory)\CountdownWidget\CountdownWidget\coverage\cobertura-coverage.xml'
reportDirectory: '$(Build.SourcesDirectory)\CountdownWidget\CountdownWidget\coverage-inline\'
- task: dutchworkz.DisplayAllVariables.DisplayAllVariables.DutchWorkzToolsAllVariables@1
displayName: 'Show all build variables in build output.'
- task: ms-devlabs.vsts-developer-tools-build-tasks.package-extension-build-task.PackageVSTSExtension@1
displayName: 'Package Extension: CountdownWidget/CountdownWidget/'
inputs:
rootFolder: CountdownWidget/CountdownWidget/
outputPath: 'drop\output.vsix'
publisherId: 'alm-rangers'
extensionId: CountdownWidget
extensionTag: Alpha
extensionName: 'Countdown Widget'
extensionVersion: $(Build.BuildNumber)
updateTasksVersion: true
extensionVisibility: private
extensionPricing: free
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'
inputs:
PathtoPublish: $(Extension.OutputPath)