]> granicus.if.org Git - check/commitdiff
Build MSVC with AppVeyor
authorBranden Archer <b.m.archer4@gmail.com>
Mon, 28 Mar 2016 11:58:58 +0000 (07:58 -0400)
committerBranden Archer <b.m.archer4@gmail.com>
Mon, 28 Mar 2016 12:04:18 +0000 (08:04 -0400)
appveyor.yml

index 737c12444048c366e7fbe7e5c81e379e21e20a9a..cad5164a387c2f0eea1b505e8d9cb5210d610424 100644 (file)
@@ -21,6 +21,7 @@ version: 1.0.{build}
 
 environment:
   matrix:
+  - platform: msvc
   - platform: vs
 
 # scripts that are called at very beginning, before repo cloning
@@ -44,13 +45,17 @@ configuration: Release
 before_build:
   - echo Running cmake...
   - cd c:\projects\check
+  - if %platform%==msvc call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat"
+  - if %platform%==msvc cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=%P%
   - if %platform%==vs cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%P%
 
 build_script:
   # build code and unit tests
+  - if %platform%==msvc nmake
   - if %platform%==vs msbuild "ALL_BUILD.vcxproj"
 
 test_script:
   # run unit tests
   - echo Running unit tests...
+  - if %platform%==msvc nmake test
   - if %platform%==vs msbuild "RUN_TESTS.vcxproj"