forked from giggio/node-chromedriver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
78 lines (75 loc) · 1.74 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
trigger:
- main
jobs:
- job: Linux
pool:
vmImage: "ubuntu-16.04"
strategy:
matrix:
node_10:
nodeversion: "10.x"
node_12:
nodeversion: "12.x"
node_14:
nodeversion: "14.x"
node_15:
nodeversion: "15.x"
steps:
- task: NodeTool@0
inputs:
versionSpec: "$(nodeversion)"
displayName: "Install"
- task: Npm@1
displayName: "Npm install"
- script: ./test-driver.sh
displayName: "Verify install"
- job: macOS
pool:
vmImage: "macOS-10.14"
strategy:
matrix:
node_10:
nodeversion: "10.x"
node_12:
nodeversion: "12.x"
node_14:
nodeversion: "14.x"
node_15:
nodeversion: "15.x"
steps:
- task: NodeTool@0
inputs:
versionSpec: "$(nodeversion)"
- task: Npm@1
displayName: "Npm install"
- script: ./test-driver.sh
displayName: "Verify install"
- job: Windows
pool:
vmImage: "windows-2019"
strategy:
matrix:
node_10:
nodeversion: "10.x"
node_12:
nodeversion: "12.x"
node_14:
nodeversion: "14.x"
node_15:
nodeversion: "15.x"
steps:
- task: NodeTool@0
inputs:
versionSpec: "$(nodeversion)"
- task: Npm@1
displayName: "Npm install"
inputs:
verbose: false
- powershell: |
node --version
npm --version
$nodeProcess = start node bin\chromedriver -PassThru
sleep 5
if ($nodeProcess.HasExited) { exit 1 }
Stop-Process -Id $nodeProcess.Id -Force
displayName: "Verify install"