From 8e83dba05ce831d8fdf0fc99a4694a7e95c7b516 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 23 Aug 2017 12:19:31 -0400 Subject: [PATCH] Try to add AppVeyor Cmake builds for debug and release Take 11 --- .appveyor.yml | 64 ++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 61 insertions(+), 3 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 646d9556..564a3c83 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -37,7 +37,7 @@ test_script: - ps: >- - if($env:BUILD_MODE -eq "CMake") + if($env:image -eq "Visual Studio 2017" && $env:BUILD_MODE -eq "CMake") { mkdir cmake-build @@ -47,13 +47,71 @@ test_script: if($env:configuration -eq "Debug") { - cmake -G '"'$env:image'"' -DCMAKE_BUILD_TYPE=Debug ../ + cmake -G "Visual Studio 15 2017" -DCMAKE_BUILD_TYPE=Debug ../ } else { - cmake -G '"'$env:image'"' -DCMAKE_BUILD_TYPE=Release ../ + cmake -G "Visual Studio 15 2017" -DCMAKE_BUILD_TYPE=Release ../ + + } + + msbuild /t:Build cryptopp-static.vcxproj + + msbuild /t:Build cryptopp.vcxproj + + .\cryptest.exe v + + .\cryptest.exe tv all + + } + elseif($env:image -eq "Visual Studio 2015" && $env:BUILD_MODE -eq "CMake") + { + + mkdir cmake-build + + cd cmake-build + + if($env:configuration -eq "Debug") + { + + cmake -G "Visual Studio 14 2015" -DCMAKE_BUILD_TYPE=Debug ../ + + } + else + { + + cmake -G "Visual Studio 14 2015" -DCMAKE_BUILD_TYPE=Release ../ + + } + + msbuild /t:Build cryptopp-static.vcxproj + + msbuild /t:Build cryptopp.vcxproj + + .\cryptest.exe v + + .\cryptest.exe tv all + + } + elseif($env:image -eq "Visual Studio 2013" && $env:BUILD_MODE -eq "CMake") + { + + mkdir cmake-build + + cd cmake-build + + if($env:configuration -eq "Debug") + { + + cmake -G "Visual Studio 12 2013" -DCMAKE_BUILD_TYPE=Debug ../ + + } + else + { + + cmake -G "Visual Studio 12 2013" -DCMAKE_BUILD_TYPE=Release ../ }