Try to add AppVeyor Cmake builds for debug and release
parent
8da7ed1abf
commit
0e899de2b2
|
|
@ -22,6 +22,11 @@ image:
|
||||||
- Visual Studio 2015
|
- Visual Studio 2015
|
||||||
- Visual Studio 2013
|
- Visual Studio 2013
|
||||||
|
|
||||||
|
environment:
|
||||||
|
|
||||||
|
BUILD_MODE = CMake
|
||||||
|
BUILD_MODE = MSBuild
|
||||||
|
|
||||||
# Disable build through solution file
|
# Disable build through solution file
|
||||||
build: off
|
build: off
|
||||||
|
|
||||||
|
|
@ -30,15 +35,35 @@ test_script:
|
||||||
|
|
||||||
- ps: >-
|
- ps: >-
|
||||||
|
|
||||||
if($env:BUILD_MODE -eq "CMake") {
|
if($env:BUILD_MODE -eq "CMake")
|
||||||
|
{
|
||||||
|
|
||||||
mkdir cmake-build
|
mkdir cmake-build
|
||||||
|
|
||||||
cd 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
|
msbuild /t:Build /p:platform="$env:platform" /p:configuration="$env:configuration" cryptlib.vcxproj
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue