forked from Kitware/itk-vtk-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
78 lines (64 loc) · 1.44 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:
- master
jobs:
- job: 'BuildTest'
displayName: 'Build and test'
strategy:
matrix:
LinuxNode8:
nodeVersion: '8'
LinuxNode10:
nodeVersion: '10'
pool:
imageName: 'ubuntu-16.04'
steps:
- task: NodeTool@0
inputs:
versionSpec: '$(nodeVersion).x'
displayName: 'Install Node.js'
- script: |
npm ci
npm run build
displayName: 'Build'
- bash: |
# Allow writing test/output.html
sudo chmod 777 test
# To debug, run `./test/run.sh -d`
./test/run.sh
displayName: 'Test'
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testRunner: JUnit
testResultsFiles: 'test/TESTS-*.xml'
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'Node$(nodeVersion)TestOutput'
targetPath: './test/output.html'
- job: 'Build'
displayName: 'Build'
strategy:
matrix:
macOSNode8:
imageName: 'macos-10.13'
nodeVersion: '8'
macOSNode10:
imageName: 'macos-10.13'
nodeVersion: '10'
WindowsNode8:
imageName: 'vs2017-win2016'
nodeVersion: '8'
WindowsNode10:
imageName: 'vs2017-win2016'
nodeVersion: '10'
pool:
imageName: $(imageName)
steps:
- task: NodeTool@0
inputs:
versionSpec: '$(nodeVersion).x'
displayName: 'Install Node.js'
- script: |
npm ci
npm run build
displayName: 'Build'