forked from Azure/Azurite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
157 lines (135 loc) · 3.82 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
# https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=vsts&tabs=schema
trigger:
- master
- dev
jobs:
- job: blobnodejslinux
displayName: Blob Linux
pool:
vmImage: "ubuntu-16.04"
strategy:
matrix:
node_8_x:
node_version: 8.x
node_10_x:
node_version: 10.x
steps:
- task: NodeTool@0
inputs:
versionSpec: "$(node_version)"
displayName: "Install Node.js"
- script: |
npm install
workingDirectory: "./"
displayName: "npm install"
- script: |
npm run lint
workingDirectory: "./"
displayName: "tslint"
- script: |
npm run validate:npmpack:linux_mac
workingDirectory: "./"
displayName: "Validate npm package installation"
- script: |
npm run vscode:pack
workingDirectory: "./"
displayName: "Validate Visual Studio Code extension package generation"
- script: |
npm run test
workingDirectory: "./"
displayName: "npm run test"
env: {}
- job: blobnodejswin
displayName: Blob Windows
pool:
vmImage: "vs2017-win2016"
strategy:
matrix:
node_8_x:
node_version: 8.x
node_10_x:
node_version: 10.x
steps:
- task: NodeTool@0
inputs:
versionSpec: "$(node_version)"
displayName: "Install Node.js"
- script: |
npm install
workingDirectory: "./"
displayName: "npm install"
- script: |
npm run lint
workingDirectory: "./"
displayName: "tslint"
- script: |
npm run validate:npmpack:win
workingDirectory: "./"
displayName: "Validate npm package installation"
- script: |
npm run vscode:pack
workingDirectory: "./"
displayName: "Validate Visual Studio Code extension package generation"
- script: |
npm run test
workingDirectory: "./"
displayName: "npm run test"
env: {}
- job: blobnodejsmac
displayName: Blob Mac
pool:
vmImage: "macOS-10.13"
strategy:
matrix:
node_8_x:
node_version: 8.x
node_10_x:
node_version: 10.x
steps:
- task: NodeTool@0
inputs:
versionSpec: "$(node_version)"
displayName: "Install Node.js"
- script: |
npm install
workingDirectory: "./"
displayName: "npm install"
- script: |
npm run lint
workingDirectory: "./"
displayName: "tslint"
- script: |
npm run validate:npmpack:linux_mac
workingDirectory: "./"
displayName: "Validate npm package installation"
- script: |
npm run vscode:pack
workingDirectory: "./"
displayName: "Validate Visual Studio Code extension package generation"
- script: |
npm run test
workingDirectory: "./"
displayName: "npm run test"
env: {}
- job: docker
displayName: Docker Build
pool:
vmImage: "ubuntu-16.04"
steps:
- script: |
npm install
workingDirectory: "./"
displayName: "npm install"
- script: |
npm run docker:build
workingDirectory: "./"
displayName: "Build docker image"
- script: |
docker run xstoreazurite.azurecr.io/public/azure-storage/azurite:latest azurite -v
docker run xstoreazurite.azurecr.io/public/azure-storage/azurite:latest azurite-blob -v
workingDirectory: "./"
displayName: "Validate docker image"