forked from InsightSoftwareConsortium/itk-wasm
/
azure-pipelines.yml
79 lines (66 loc) · 1.48 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
trigger:
- master
jobs:
- job: 'BuildTest'
displayName: 'Build and test'
strategy:
matrix:
LinuxNode8:
nodeVersion: '8'
LinuxNode10:
nodeVersion: '10'
LinuxNode12:
nodeVersion: '12'
pool:
name: 'Hosted Ubuntu 1804'
imageName: 'ubuntu-18.04'
steps:
- task: NodeTool@0
inputs:
versionSpec: '$(nodeVersion).x'
displayName: 'Install Node.js'
- script: |
npm install
npm run build
displayName: 'Build'
- bash: |
# To create node_modules/.cache
chmod 777 node_modules/
chmod -R 777 build/Testing/
# To debug, run `./test/run.sh -d`
./test/run.sh
displayName: 'Test'
- bash: |
cd examples/Node.js
npm install
npm run test
displayName: 'Test Node.js example'
- job: 'Build'
displayName: 'Build and test'
strategy:
matrix:
WindowsNode8:
poolName: 'Hosted 2019'
imageName: 'windows-2019'
nodeVersion: '8'
WindowsNode10:
poolName: 'Hosted 2019'
imageName: 'windows-2019'
nodeVersion: '10'
WindowsNode12:
poolName: 'Hosted 2019'
imageName: 'windows-2019'
nodeVersion: '12'
pool:
name: '$(poolName)'
imageName: '$(imageName)'
steps:
- task: NodeTool@0
inputs:
versionSpec: '$(nodeVersion).x'
displayName: 'Install Node.js'
- bash: |
cd examples/Node.js
npm install
npm run test
displayName: 'Test Node.js example'