11variables :
2- ITKv4_VERSION : v4.13.2
3- ITKv5_VERSION : v5.0.0
4- ITK_SOURCE_DIR : $(Agent.BuildDirectory)/ITK-source
5- ITK_BINARY_DIR : $(Agent.BuildDirectory)/ITK-build
62 ELASTIX_SOURCE_DIR : $(Build.Repository.LocalPath)
73 ELASTIX_BINARY_DIR : $(Agent.BuildDirectory)/Elastix-build
84
95jobs :
10- - job : Windows
6+ - job : WindowsVcpkg
117 timeoutInMinutes : 0
128 pool :
139 vmImage : ' vs2017-win2016'
14- strategy :
15- matrix :
16- ITKv4 :
17- itk.version : $(ITKv4_VERSION)
18- ITKv5 :
19- itk.version : $(ITKv5_VERSION)
2010 steps :
2111 - script : |
22- git clone https://github.com/InsightSoftwareConsortium/ITK "$(ITK_SOURCE_DIR)"
23- pushd "$(ITK_SOURCE_DIR)"
24- git checkout $(itk.version)
25- popd
26- displayName: Clone ITK
12+ set VCPKG_DEFAULT_TRIPLET=x64-windows
13+ vcpkg.exe install itk
14+ displayName: vcpkg install itk
2715 - script : |
28- mkdir "$(ITK_BINARY_DIR)"
2916 mkdir "$(ELASTIX_BINARY_DIR)"
3017 displayName: Make build directories
31- - task : CMake@1
32- displayName : ' CMake Generate ITK'
33- inputs :
34- cmakeArgs : -G "Visual Studio 15 2017 Win64" -T host=x64 -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF "$(ITK_SOURCE_DIR)"
35- workingDirectory : " $(ITK_BINARY_DIR)"
36- - task : CMake@1
37- displayName : ' CMake Build ITK'
38- inputs :
39- cmakeArgs : --build . --config Release -j 2
40- workingDirectory : " $(ITK_BINARY_DIR)"
4118 - task : CMake@1
4219 displayName : ' CMake Generate Elastix'
4320 inputs :
44- cmakeArgs : -G "Visual Studio 15 2017 Win64" -T host=x64 -DITK_DIR="$(ITK_BINARY_DIR)" - DBUILD_TESTING=ON -DUSE_ALL_COMPONENTS=ON "$(ELASTIX_SOURCE_DIR)"
21+ cmakeArgs : -G "Visual Studio 15 2017 Win64" -T host=x64 -DBUILD_TESTING=ON -DUSE_ALL_COMPONENTS=ON "$(ELASTIX_SOURCE_DIR)" "-DCMAKE_TOOLCHAIN_FILE=%VCPKG_INSTALLATION_ROOT%/scripts/buildsystems/vcpkg.cmake "
4522 workingDirectory : " $(ELASTIX_BINARY_DIR)"
4623 - task : CMake@1
4724 displayName : ' CMake Build Elastix'
5431 ctest -C Release -VV -j 2 -E "elastix_run_example_COMPARE_IM|elastix_run_3DCT_lung.MI.bspline.ASGD.001_COMPARE_TP"
5532 popd
5633 displayName: 'CTest Elastix'
57- - job : Ubuntu1604
58- timeoutInMinutes : 0
59- pool :
60- vmImage : ' ubuntu-16.04'
61- strategy :
62- matrix :
63- ITKv4 :
64- itk.version : $(ITKv4_VERSION)
65- ITKv5 :
66- itk.version : $(ITKv5_VERSION)
67- steps :
68- - script : |
69- git clone https://github.com/InsightSoftwareConsortium/ITK $(ITK_SOURCE_DIR)
70- pushd $(ITK_SOURCE_DIR)
71- git checkout $(itk.version)
72- popd
73- - script : |
74- mkdir $(ITK_BINARY_DIR)
75- mkdir $(ELASTIX_BINARY_DIR)
76- displayName: Clone ITK
77- - task : CMake@1
78- displayName : ' CMake Generate ITK'
79- inputs :
80- cmakeArgs : -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF $(ITK_SOURCE_DIR)
81- workingDirectory : $(ITK_BINARY_DIR)
82- - task : CMake@1
83- displayName : ' CMake Build ITK'
84- inputs :
85- cmakeArgs : --build . --config Release -j 2
86- workingDirectory : $(ITK_BINARY_DIR)
87- - task : CMake@1
88- displayName : ' CMake Generate Elastix'
89- inputs :
90- cmakeArgs : -DITK_DIR=$(ITK_BINARY_DIR) -DBUILD_TESTING=ON -DUSE_ALL_COMPONENTS=ON $(ELASTIX_SOURCE_DIR)
91- workingDirectory : $(ELASTIX_BINARY_DIR)
92- - task : CMake@1
93- displayName : ' CMake Build Elastix'
94- inputs :
95- cmakeArgs : --build . --config Release -j 2
96- workingDirectory : $(ELASTIX_BINARY_DIR)
97- - bash : ctest --config Release -VV -j 2
98- displayName : ' CTest Elastix'
99- workingDirectory : $(ELASTIX_BINARY_DIR)
100- - job : macOS
101- timeoutInMinutes : 0
102- pool :
103- vmImage : ' macOS-10.14'
104- strategy :
105- matrix :
106- ITKv4 :
107- itk.version : $(ITKv4_VERSION)
108- ITKv5 :
109- itk.version : $(ITKv5_VERSION)
110- steps :
111- - script : |
112- git clone https://github.com/InsightSoftwareConsortium/ITK $(ITK_SOURCE_DIR)
113- pushd $(ITK_SOURCE_DIR)
114- git checkout $(itk.version)
115- popd
116- displayName: Clone ITK
117- - script : |
118- mkdir $(ITK_BINARY_DIR)
119- mkdir $(ELASTIX_BINARY_DIR)
120- displayName: Make build directories
121- - task : CMake@1
122- displayName : ' CMake Generate ITK'
123- inputs :
124- cmakeArgs : -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF $(ITK_SOURCE_DIR)
125- workingDirectory : $(ITK_BINARY_DIR)
126- - task : CMake@1
127- displayName : ' CMake Build ITK'
128- inputs :
129- cmakeArgs : --build . --config Release -j 2
130- workingDirectory : $(ITK_BINARY_DIR)
131- - task : CMake@1
132- displayName : ' CMake Generate Elastix'
133- inputs :
134- cmakeArgs : -DITK_DIR=$(ITK_BINARY_DIR) -DBUILD_TESTING=ON -DUSE_ALL_COMPONENTS=ON $(Build.Repository.LocalPath)
135- workingDirectory : $(ELASTIX_BINARY_DIR)
136- - task : CMake@1
137- displayName : ' CMake Build Elastix'
138- inputs :
139- cmakeArgs : --build . --config Release -j 2
140- workingDirectory : $(ELASTIX_BINARY_DIR)
141- - bash : ctest --config Release -VV -j 2
142- displayName : ' CTest Elastix'
143- workingDirectory : $(ELASTIX_BINARY_DIR)
144-
0 commit comments