]> granicus.if.org Git - curl/commitdiff
appveyor: add Visual Studio solution build
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Sat, 25 May 2019 06:55:09 +0000 (08:55 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Wed, 29 May 2019 08:04:43 +0000 (10:04 +0200)
Closes https://github.com/curl/curl/pull/3941

appveyor.yml

index 7e7cfc18d66ec471c427e32d3bc054d85aefbc50..a809fb917768e230acca5957ce39e7fd86b3bae1 100644 (file)
@@ -92,6 +92,11 @@ environment:
         DISABLED_TESTS: ""
         COMPILER_PATH: "C:\\MinGW\\bin"
         MSYS2_ARG_CONV_EXCL: "/*"
+      - APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2017"
+        BUILD_SYSTEM: VisualStudioSolution
+        PRJ_CFG: "DLL Debug - DLL Windows SSPI - DLL WinIDN"
+        TESTING: OFF
+        VC_VERSION: VC15
 
 install:
     - set "PATH=C:\msys64\usr\bin;%PATH%"
@@ -113,7 +118,11 @@ build_script:
         -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG=""
         -DCMAKE_INSTALL_PREFIX="C:/CURL"
         -DCMAKE_BUILD_TYPE=%PRJ_CFG% &&
-        cmake --build . --config %PRJ_CFG% --clean-first )
+        cmake --build . --config %PRJ_CFG% --clean-first ) else (
+      if %BUILD_SYSTEM%==VisualStudioSolution (
+        cd projects &&
+        .\\generate.bat %VC_VERSION% &&
+        msbuild.exe /p:Configuration="%PRJ_CFG%" "Windows\\%VC_VERSION%\\curl-all.sln" ))
 
 test_script:
     - if %TESTING%==ON (