summaryrefslogtreecommitdiff
path: root/.appveyor.yml
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-08-23 16:13:20 -0400
committerGitHub <noreply@github.com>2017-08-23 16:13:20 -0400
commit9c9e69119f4a6027d063e0a75c3e278c615e4a7f (patch)
tree7e37153b88d8d4412e49e841624f6f1edf48200c /.appveyor.yml
parent559fc3bd8959d4ed86aae7d3f28a1a807c52a44f (diff)
downloadcryptopp-git-9c9e69119f4a6027d063e0a75c3e278c615e4a7f.tar.gz
Remove -march=native as default in Makefile and CMake (PR #465)
Remove -march=native as default in Makefile and CMake (PR #465)
Diffstat (limited to '.appveyor.yml')
-rw-r--r--.appveyor.yml90
1 files changed, 84 insertions, 6 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index 2ef03f51..d7f9928b 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -22,23 +22,101 @@ image:
- Visual Studio 2015
- Visual Studio 2013
+environment:
+
+ matrix:
+
+ - BUILD_MODE: CMake
+ - BUILD_MODE: MSBuild
+
# Disable build through solution file
build: off
# Build through commands in script below
test_script:
-- cmd: >-
+- ps: >-
+
+ if($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2017" -and $env:BUILD_MODE -eq "CMake")
+ {
+
+ mkdir cmake-build
+
+ cd cmake-build
+
+ cmake -G "Visual Studio 15 2017" -DCMAKE_BUILD_TYPE=$env:configuration ..\
+
+ msbuild /t:Build cryptopp-static.vcxproj
+
+ msbuild /t:Build cryptest.vcxproj
+
+ robocopy $env:APPVEYOR_BUILD_FOLDER\cmake-build\$env:configuration\ $env:APPVEYOR_BUILD_FOLDER\ cryptest.exe
+
+ cd $env:APPVEYOR_BUILD_FOLDER\
+
+ .\cryptest.exe v
+
+ .\cryptest.exe tv all
+
+ }
+ elseif($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2015" -and $env:BUILD_MODE -eq "CMake")
+ {
+
+ mkdir cmake-build
+
+ cd cmake-build
+
+ cmake -G "Visual Studio 14 2015" -DCMAKE_BUILD_TYPE=$env:configuration ..\
+
+ msbuild /t:Build cryptopp-static.vcxproj
+
+ msbuild /t:Build cryptest.vcxproj
+
+ robocopy $env:APPVEYOR_BUILD_FOLDER\cmake-build\$env:configuration\ $env:APPVEYOR_BUILD_FOLDER\ cryptest.exe
+
+ cd $env:APPVEYOR_BUILD_FOLDER\
+
+ .\cryptest.exe v
+
+ .\cryptest.exe tv all
+
+ }
+ elseif($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2013" -and $env:BUILD_MODE -eq "CMake")
+ {
+
+ mkdir cmake-build
+
+ cd cmake-build
+
+ cmake -G "Visual Studio 12 2013" -DCMAKE_BUILD_TYPE=$env:configuration ..\
+
+ msbuild /t:Build cryptopp-static.vcxproj
+
+ msbuild /t:Build cryptest.vcxproj
+
+ robocopy $env:APPVEYOR_BUILD_FOLDER\cmake-build\$env:configuration\ $env:APPVEYOR_BUILD_FOLDER\ cryptest.exe
+
+ cd $env:APPVEYOR_BUILD_FOLDER\
+
+ .\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=%platform%;configuration=%configuration% cryptlib.vcxproj
+ msbuild /t:Build /p:platform="$env:platform" /p:configuration="$env:configuration" cryptest.vcxproj
- msbuild /t:Build /p:platform=%platform%;configuration=%configuration% cryptest.vcxproj
+ msbuild /t:CopyCryptestToRoot cryptest.vcxproj
- msbuild /t:CopyCryptestToRoot cryptest.vcxproj
+ .\cryptest.exe v
- cryptest.exe v
+ .\cryptest.exe tv all
- cryptest.exe tv all
+ }
notifications:
- provider: Email