Try to add AppVeyor Cmake builds for debug and release

Take 11
pull/465/head
Jeffrey Walton 2017-08-23 12:19:31 -04:00
parent dfa35595fb
commit 8e83dba05c
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 61 additions and 3 deletions

View File

@ -37,7 +37,7 @@ test_script:
- ps: >- - ps: >-
if($env:BUILD_MODE -eq "CMake") if($env:image -eq "Visual Studio 2017" && $env:BUILD_MODE -eq "CMake")
{ {
mkdir cmake-build mkdir cmake-build
@ -47,13 +47,71 @@ test_script:
if($env:configuration -eq "Debug") if($env:configuration -eq "Debug")
{ {
cmake -G '"'$env:image'"' -DCMAKE_BUILD_TYPE=Debug ../ cmake -G "Visual Studio 15 2017" -DCMAKE_BUILD_TYPE=Debug ../
} }
else 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 ../
} }