Skip to content

Commit 06e22b2

Browse files
author
Andrey Ivanov
committed
Update pipeline
1 parent ad2d00f commit 06e22b2

File tree

3 files changed

+37
-67
lines changed

3 files changed

+37
-67
lines changed

azure-pipelines-steps-node.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
steps:
2+
# npm install
3+
- task: Npm@1
4+
displayName: (azure-pipelines-task-lib) npm install
5+
inputs:
6+
command: install
7+
workingDir: node
8+
9+
# use node 10
10+
- task: NodeTool@0
11+
displayName: (azure-pipelines-task-lib) use node 10.23.0
12+
inputs:
13+
versionSpec: "10.23.0"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
steps:
2+
# test
3+
- script: node make.js test
4+
workingDirectory: node
5+
displayName: (azure-pipelines-task-lib) node make.js test
6+
7+
# build
8+
- script: node make.js build
9+
displayName: (azure-pipelines-task-lib) node make.js build
10+
workingDirectory: node

azure-pipelines.yml

Lines changed: 14 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,20 @@ jobs:
1616
# azure-pipelines-task-lib
1717
################################################################################
1818

19-
# npm install
20-
- task: Npm@1
21-
displayName: (azure-pipelines-task-lib) npm install
22-
inputs:
23-
command: install
24-
workingDir: node
19+
- template: azure-pipelines-steps-node.yml
2520

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
21+
# test
3322
- script: |
3423
chcp 437
3524
node make.js test
3625
workingDirectory: node
3726
displayName: (azure-pipelines-task-lib) node make.js test
3827
39-
# build/test
28+
# build
4029
- script: |
4130
chcp 437
42-
node make.js test
43-
displayName: (azure-pipelines-task-lib) node make.js test
31+
node make.js build
32+
displayName: (azure-pipelines-task-lib) node make.js build
4433
workingDirectory: node
4534
4635
################################################################################
@@ -66,33 +55,15 @@ jobs:
6655
pool:
6756
vmImage: ubuntu-18.04
6857

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
58+
steps:
59+
- template: azure-pipelines-steps-node.yml
60+
- template: azure-pipelines-steps-test-build.yml
8061

81-
# use node 10
82-
- task: NodeTool@0
83-
displayName: (azure-pipelines-task-lib) use node 10.23.0
62+
- task: PublishPipelineArtifact@1
8463
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
64+
targetPath: 'node/_build'
65+
artifactType: 'pipeline'
66+
artifactName: 'npm-package'
9667

9768
# For CI runs on master, automatically publish packages
9869
- bash: |
@@ -113,29 +84,5 @@ jobs:
11384
vmImage: macOS-10.15
11485

11586
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
87+
- template: azure-pipelines-steps-node.yml
88+
- template: azure-pipelines-steps-test-build.yml

0 commit comments

Comments
 (0)