forked from colindembovsky/cols-agent-tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
80 lines (69 loc) · 2.68 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
73
74
75
76
77
78
79
80
name: 1.4$(Rev:.r)
resources:
- repo: self
queue:
name: Hosted Ubuntu 1604
demands:
- npm
- DotNetFramework
steps:
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2
displayName: 'Use Yarn 1.x'
inputs:
checkLatest: true
- script: 'yarn install'
displayName: 'Run yarn install'
- script: 'yarn prepextension'
displayName: 'Run yarn prepextension'
workingDirectory: '$(Build.SourcesDirectory)'
- task: PublishTestResults@2
displayName: 'Publish Test Results test-results.xml'
inputs:
testResultsFiles: '$(Build.SourcesDirectory)/test-results.xml'
testRunTitle: 'Publish test results'
condition: succeededOrFailed()
- script: 'cat $(Build.SourcesDirectory)/coverage/cobertura-coverage.xml'
displayName: 'Check coverage file'
- task: PublishCodeCoverageResults@1
displayName: 'Publish Code Coverage Results $(Build.SourcesDirectory)/coverage/cobertura-coverage.xml'
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(Build.SourcesDirectory)/coverage/cobertura-coverage.xml'
reportDirectory: '$(Build.SourcesDirectory)/coverage'
- task: ms-devlabs.vsts-developer-tools-build-tasks.package-extension-build-task.PackageVSTSExtension@1
displayName: 'Package real Extension '
inputs:
rootFolder: '$(Build.SourcesDirectory)'
outputPath: '$(Build.ArtifactStagingDirectory)/colinsalmcorner.colinsalmcorner-buildtasks-$(Build.BuildNumber).vsix'
publisherId: colinsalmcorner
extensionId: 'colinsalmcorner-buildtasks'
extensionVersion: '$(Build.BuildNumber)'
updateTasksVersion: true
updateTasksVersionType: patch
cwd: '$(Build.SourcesDirectory)'
- powershell: './Update-TaskIDs.ps1 -Beta'
displayName: 'PowerShell Update beta ids'
condition: eq(variables['Agent.OS'], 'Windows_NT')
failOnStderr: true
- bash: 'sh update-taskids.sh beta'
workingDirectory: '$(Build.SourcesDirectory)'
displayName: 'Bash Update beta ids'
condition: ne(variables['Agent.OS'], 'Windows_NT')
failOnStderr: true
- task: ms-devlabs.vsts-developer-tools-build-tasks.package-extension-build-task.PackageVSTSExtension@1
displayName: 'Package beta Extension '
inputs:
outputPath: '$(Build.ArtifactStagingDirectory)/colinsalmcorner.colinsalmcorner-buildtasks-beta-$(Build.BuildNumber).vsix'
publisherId: colinsalmcorner
extensionId: 'colinsalmcorner-buildtasks'
extensionTag: beta
extensionVersion: '$(Build.BuildNumber)'
updateTasksVersion: true
updateTasksVersionType: patch
extensionVisibility: private
extensionPricing: free
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: vsix'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
ArtifactName: vsix