From 0e899de2b226850d6e58ed72b7caf9fd5f915e81 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 23 Aug 2017 11:30:45 -0400 Subject: [PATCH] Try to add AppVeyor Cmake builds for debug and release --- .appveyor.yml | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 0246d5d0..c51ea98e 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -22,6 +22,11 @@ image: - Visual Studio 2015 - Visual Studio 2013 +environment: + + BUILD_MODE = CMake + BUILD_MODE = MSBuild + # Disable build through solution file build: off @@ -30,15 +35,35 @@ test_script: - ps: >- - if($env:BUILD_MODE -eq "CMake") { + if($env:BUILD_MODE -eq "CMake") + { mkdir cmake-build cd cmake-build - cmake ../ + if($env:configuration -eq "Debug") + { - } else { + cmake -DCMAKE_BUILD_TYPE=Debug ../ + + } + else + { + + cmake -DCMAKE_BUILD_TYPE=Release ../ + + } + + make -j 2 + + .\cryptest.exe v + + .\cryptest.exe tv all + + } + else + { msbuild /t:Build /p:platform="$env:platform" /p:configuration="$env:configuration" cryptlib.vcxproj