forked from Kitware/itk-vtk-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
56 lines (49 loc) · 1.13 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
trigger:
- master
jobs:
- job: 'Test'
displayName: 'Test'
strategy:
matrix:
LinuxNode8:
imageName: 'ubuntu-16.04'
nodeVersion: '8'
hasWebGLTesting: false
LinuxNode11:
imageName: 'ubuntu-16.04'
nodeVersion: '11'
hasWebGLTesting: false
macOSNode8:
imageName: 'macos-10.13'
nodeVersion: '8'
hasWebGLTesting: false
macOSNode11:
imageName: 'macos-10.13'
nodeVersion: '11'
hasWebGLTesting: false
WindowsNode8:
imageName: 'vs2017-win2016'
nodeVersion: '8'
hasWebGLTesting: false
WindowsNode11:
imageName: 'vs2017-win2016'
nodeVersion: '11'
hasWebGLTesting: false
pool:
imageName: $(imageName)
steps:
- task: NodeTool@0
inputs:
versionSpec: '$(nodeVersion).x'
displayName: 'Install Node.js'
- script: |
npm install
npm run build
displayName: 'Build'
- bash: |
if $(hasWebGLTesting); then
npm run test
else
echo "Testing skipped because there is no WebGL environment."
fi
displayName: 'Test'