3
3
- features/*
4
4
- releases/*
5
5
6
+ variables :
7
+ nodeVersion : 10.23.0
8
+
6
9
jobs :
7
10
# ################################################
8
11
- job : windows
@@ -16,31 +19,22 @@ jobs:
16
19
# azure-pipelines-task-lib
17
20
# ###############################################################################
18
21
19
- # npm install
20
- - task : Npm@1
21
- displayName : (azure-pipelines-task-lib) npm install
22
- inputs :
23
- command : install
24
- workingDir : node
22
+ - template : azure-pipelines-steps-node.yml
23
+ parameters :
24
+ nodeVersion : $(nodeVersion)
25
25
26
- # use node 10
27
- - task : NodeTool@0
28
- displayName : (azure-pipelines-task-lib) use node 10.23.0
29
- inputs :
30
- versionSpec : " 10.23.0"
31
-
32
- # build/test
26
+ # test
33
27
- script : |
34
28
chcp 437
35
29
node make.js test
36
30
workingDirectory: node
37
31
displayName: (azure-pipelines-task-lib) node make.js test
38
32
39
- # build/test
33
+ # build
40
34
- script : |
41
35
chcp 437
42
- node make.js test
43
- displayName: (azure-pipelines-task-lib) node make.js test
36
+ node make.js build
37
+ displayName: (azure-pipelines-task-lib) node make.js build
44
38
workingDirectory: node
45
39
46
40
# ###############################################################################
@@ -66,33 +60,17 @@ jobs:
66
60
pool :
67
61
vmImage : ubuntu-18.04
68
62
69
- steps :
70
- # ###############################################################################
71
- # azure-pipelines-task-lib
72
- # ###############################################################################
73
-
74
- # npm install
75
- - task : Npm@1
76
- displayName : (azure-pipelines-task-lib) npm install
77
- inputs :
78
- command : install
79
- workingDir : node
63
+ steps :
64
+ - template : azure-pipelines-steps-node.yml
65
+ parameters :
66
+ nodeVersion : $(nodeVersion)
67
+ - template : azure-pipelines-steps-test-build.yml
80
68
81
- # use node 10
82
- - task : NodeTool@0
83
- displayName : (azure-pipelines-task-lib) use node 10.23.0
69
+ - task : PublishPipelineArtifact@1
84
70
inputs :
85
- versionSpec : " 10.23.0"
86
-
87
- # build/test
88
- - script : node make.js test
89
- workingDirectory : node
90
- displayName : (azure-pipelines-task-lib) node make.js test
91
-
92
- # build/test
93
- - script : node make.js test
94
- displayName : (azure-pipelines-task-lib) node make.js test
95
- workingDirectory : node
71
+ targetPath : ' node/_build'
72
+ artifactType : ' pipeline'
73
+ artifactName : ' npm-package'
96
74
97
75
# For CI runs on master, automatically publish packages
98
76
- bash : |
@@ -113,29 +91,7 @@ jobs:
113
91
vmImage : macOS-10.15
114
92
115
93
steps :
116
- # ###############################################################################
117
- # azure-pipelines-task-lib
118
- # ###############################################################################
119
-
120
- # npm install
121
- - task : Npm@1
122
- displayName : (azure-pipelines-task-lib) npm install
123
- inputs :
124
- command : install
125
- workingDir : node
126
-
127
- # use node 10
128
- - task : NodeTool@0
129
- displayName : (azure-pipelines-task-lib) use node 10.23.0
130
- inputs :
131
- versionSpec : " 10.23.0"
132
-
133
- # build/test
134
- - script : node make.js test
135
- workingDirectory : node
136
- displayName : (azure-pipelines-task-lib) node make.js test
137
-
138
- # build/test
139
- - script : node make.js test
140
- displayName : (azure-pipelines-task-lib) node make.js test
141
- workingDirectory : node
94
+ - template : azure-pipelines-steps-node.yml
95
+ parameters :
96
+ nodeVersion : $(nodeVersion)
97
+ - template : azure-pipelines-steps-test-build.yml
0 commit comments