11variables :
2- ITKv5_VERSION : v5.0.0
3- ITK_SOURCE_DIR : $(Agent.BuildDirectory)/ITK-source
4- ITK_BINARY_DIR : $(Agent.BuildDirectory)/ITK-build
52 ELASTIX_SOURCE_DIR : $(Build.Repository.LocalPath)
63 ELASTIX_BINARY_DIR : $(Agent.BuildDirectory)/Elastix-build
74
85jobs :
9- - job : Windows
6+ - job : WindowsVcpkg
107 timeoutInMinutes : 0
118 pool :
129 vmImage : ' vs2017-win2016'
13- strategy :
14- matrix :
15- ITKv5 :
16- itk.version : $(ITKv5_VERSION)
1710 steps :
1811 - script : |
19- git clone https://github.com/InsightSoftwareConsortium/ITK "$(ITK_SOURCE_DIR)"
20- pushd "$(ITK_SOURCE_DIR)"
21- git checkout $(itk.version)
22- popd
23- displayName: Clone ITK
12+ set VCPKG_DEFAULT_TRIPLET=x64-windows
13+ vcpkg.exe install itk
14+ displayName: vcpkg install itk
2415 - script : |
25- mkdir "$(ITK_BINARY_DIR)"
2616 mkdir "$(ELASTIX_BINARY_DIR)"
2717 displayName: Make build directories
28- - task : CMake@1
29- displayName : ' CMake Generate ITK'
30- inputs :
31- cmakeArgs : -G "Visual Studio 15 2017 Win64" -T host=x64 -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -DITK_LEGACY_REMOVE=ON "$(ITK_SOURCE_DIR)"
32- workingDirectory : " $(ITK_BINARY_DIR)"
33- - task : CMake@1
34- displayName : ' CMake Build ITK'
35- inputs :
36- cmakeArgs : --build . --config Release -j 2
37- workingDirectory : " $(ITK_BINARY_DIR)"
3818 - task : CMake@1
3919 displayName : ' CMake Generate Elastix'
4020 inputs :
41- 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=C:/vcpkg/scripts/buildsystems/vcpkg.cmake "
4222 workingDirectory : " $(ELASTIX_BINARY_DIR)"
4323 - task : CMake@1
4424 displayName : ' CMake Build Elastix'
5131 ctest -C Release -VV -j 2 -E "elastix_run_example_COMPARE_IM|elastix_run_3DCT_lung.MI.bspline.ASGD.001_COMPARE_TP"
5232 popd
5333 displayName: 'CTest Elastix'
54- - job : Ubuntu1604
55- timeoutInMinutes : 0
56- pool :
57- vmImage : ' ubuntu-16.04'
58- strategy :
59- matrix :
60- ITKv5 :
61- itk.version : $(ITKv5_VERSION)
62- steps :
63- - script : |
64- git clone https://github.com/InsightSoftwareConsortium/ITK $(ITK_SOURCE_DIR)
65- pushd $(ITK_SOURCE_DIR)
66- git checkout $(itk.version)
67- popd
68- - script : |
69- mkdir $(ITK_BINARY_DIR)
70- mkdir $(ELASTIX_BINARY_DIR)
71- displayName: Clone ITK
72- - task : CMake@1
73- displayName : ' CMake Generate ITK'
74- inputs :
75- cmakeArgs : -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -DITK_LEGACY_REMOVE=ON $(ITK_SOURCE_DIR)
76- workingDirectory : $(ITK_BINARY_DIR)
77- - task : CMake@1
78- displayName : ' CMake Build ITK'
79- inputs :
80- cmakeArgs : --build . --config Release -j 2
81- workingDirectory : $(ITK_BINARY_DIR)
82- - task : CMake@1
83- displayName : ' CMake Generate Elastix'
84- inputs :
85- cmakeArgs : -DITK_DIR=$(ITK_BINARY_DIR) -DBUILD_TESTING=ON -DUSE_ALL_COMPONENTS=ON $(ELASTIX_SOURCE_DIR)
86- workingDirectory : $(ELASTIX_BINARY_DIR)
87- - task : CMake@1
88- displayName : ' CMake Build Elastix'
89- inputs :
90- cmakeArgs : --build . --config Release -j 2
91- workingDirectory : $(ELASTIX_BINARY_DIR)
92- - bash : ctest --config Release -VV -j 2
93- displayName : ' CTest Elastix'
94- workingDirectory : $(ELASTIX_BINARY_DIR)
95- - job : macOS
96- timeoutInMinutes : 0
97- pool :
98- vmImage : ' macOS-10.14'
99- strategy :
100- matrix :
101- ITKv5 :
102- itk.version : $(ITKv5_VERSION)
103- steps :
104- - script : |
105- git clone https://github.com/InsightSoftwareConsortium/ITK $(ITK_SOURCE_DIR)
106- pushd $(ITK_SOURCE_DIR)
107- git checkout $(itk.version)
108- popd
109- displayName: Clone ITK
110- - script : |
111- mkdir $(ITK_BINARY_DIR)
112- mkdir $(ELASTIX_BINARY_DIR)
113- displayName: Make build directories
114- - task : CMake@1
115- displayName : ' CMake Generate ITK'
116- inputs :
117- cmakeArgs : -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -DITK_LEGACY_REMOVE=ON $(ITK_SOURCE_DIR)
118- workingDirectory : $(ITK_BINARY_DIR)
119- - task : CMake@1
120- displayName : ' CMake Build ITK'
121- inputs :
122- cmakeArgs : --build . --config Release -j 2
123- workingDirectory : $(ITK_BINARY_DIR)
124- - task : CMake@1
125- displayName : ' CMake Generate Elastix'
126- inputs :
127- cmakeArgs : -DITK_DIR=$(ITK_BINARY_DIR) -DBUILD_TESTING=ON -DUSE_ALL_COMPONENTS=ON $(Build.Repository.LocalPath)
128- workingDirectory : $(ELASTIX_BINARY_DIR)
129- - task : CMake@1
130- displayName : ' CMake Build Elastix'
131- inputs :
132- cmakeArgs : --build . --config Release -j 2
133- workingDirectory : $(ELASTIX_BINARY_DIR)
134- - bash : ctest --config Release -VV -j 2
135- displayName : ' CTest Elastix'
136- workingDirectory : $(ELASTIX_BINARY_DIR)
137-
0 commit comments