forked from microsoft/typed-rest-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
44 lines (36 loc) · 966 Bytes
/
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
steps:
# use node 8.9.1 this is the recommended version for building the typed rest client
- task: NodeTool@0
inputs:
versionSpec: "8.9.1"
displayName: Install node 8.9.1
# install dependencies
- script: npm install
displayName: npm install
# build
- script: npm run build
displayName: npm run build
# test using node 8.9.1
- script: npm run units
displayName: npm run units
# test using node 4.8.6
- task: NodeTool@0
inputs:
versionSpec: "4.8.6"
displayName: Install node 4.8.6
- script: npm run units
displayName: npm run units
# test using node 6.12.0
- task: NodeTool@0
inputs:
versionSpec: "6.12.0"
displayName: Install node 6.12.0
- script: npm run units
displayName: npm run units
# publish build artifacts to drop folder so we can use them for release
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: "_build"
ArtifactName: "drop"
ArtifactType: "Container"
displayName: Publish build artifacts