-
Notifications
You must be signed in to change notification settings - Fork 5
/
build-test-publish.pipeline.yml
60 lines (48 loc) · 1.28 KB
/
build-test-publish.pipeline.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
name: 1.12$(Rev:.r)
trigger:
- master
variables:
packageFolder: _package
vsixFolder: '$(Build.ArtifactStagingDirectory)/vsix'
vsixFile: '$(vsixFolder)/matlab-$(Build.BuildNumber).vsix'
pool:
vmImage: ubuntu-latest
steps:
- task: NodeTool@0
displayName: Install node.js
inputs:
versionSpec: 18.x
- script: npm install
displayName: Install dependencies
- script: npm run build
displayName: Build
- script: npm run test
displayName: Test
- script: npm run preparePackage
displayName: Prepare package
- task: TfxInstaller@2
displayName: Install tfx-cli
inputs:
version: v0.16.x
- task: PackageAzureDevOpsExtension@2
displayName: Package
inputs:
rootFolder: '$(packageFolder)'
outputPath: '$(vsixFile)'
extensionVersion: '$(Build.BuildNumber)'
updateTasksVersion: true
updateTasksVersionType: minor
- publish: '$(vsixFile)'
displayName: Store extension
artifact: extension
- task: PublishAzureDevOpsExtension@2
displayName: Publish dev
inputs:
connectTo: VsTeam
connectedServiceName: MathWorks
fileType: vsix
vsixFile: '$(vsixFile)'
extensionTag: -dev
extensionVisibility: private
updateTasksVersion: false
shareWith: iat-ci-dev