[geos-commits] r4365 - trunk

Mateusz Loskot mateusz at loskot.net
Thu Mar 23 14:08:49 PDT 2017


Author: mloskot
Date: 2017-03-23 14:08:49 -0700 (Thu, 23 Mar 2017)
New Revision: 4365

Modified:
   trunk/appveyor.yml
Log:
AppVeyor: Add x86 build using NMake

Modified: trunk/appveyor.yml
===================================================================
--- trunk/appveyor.yml	2017-03-23 21:03:12 UTC (rev 4364)
+++ trunk/appveyor.yml	2017-03-23 21:08:49 UTC (rev 4365)
@@ -21,13 +21,20 @@
 environment:
   matrix:
     - PLATFORM: x86
+      BUILDER: CMake
       GENERATOR: "Visual Studio 14 2015"
     - PLATFORM: x64
+      BUILDER: CMake
       GENERATOR: "Visual Studio 14 2015 Win64"
     - PLATFORM: x86
+      BUILDER: CMake
       GENERATOR: "NMake Makefiles"
     - PLATFORM: x64
+      BUILDER: CMake
       GENERATOR: "NMake Makefiles"
+    - PLATFORM: x86
+      BUILDER: NMake
+      GENERATOR: "NMake Makefiles"
 
 init:
   - ps: 'Write-Host "Building GEOS branch: $env:APPVEYOR_REPO_BRANCH" -ForegroundColor Magenta'
@@ -39,16 +46,19 @@
   - if "%GENERATOR%"=="NMake Makefiles" if "%PLATFORM%"=="x64" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
 
 before_build:
-  - ps: 'Write-Host "Running cmake: $env:GENERATOR" -ForegroundColor Magenta'
-  - cmake.exe -G "%GENERATOR%" -DCMAKE_BUILD_TYPE=%CONFIGURATION% %APPVEYOR_BUILD_FOLDER%
+  - ps: 'Write-Host "Running $env:BUILDER with $env:GENERATOR" -ForegroundColor Magenta'
+  - if "%BUILDER%"=="CMake" cmake.exe -G "%GENERATOR%" -DCMAKE_BUILD_TYPE=%CONFIGURATION% %APPVEYOR_BUILD_FOLDER%
+  - if "%BUILDER%"=="NMake" .\autogen.bat
 
 build_script:
-  - ps: 'Write-Host "Running cmake --build:" -ForegroundColor Magenta'
-  - cmake --build . --config %CONFIGURATION%
+  - ps: 'Write-Host "Running $env:BUILDER:" -ForegroundColor Magenta'
+  - if "%BUILDER%"=="CMake" cmake --build . --config %CONFIGURATION%
+  - if "%BUILDER%"=="NMake" nmake /f makefile.vc
 
 test_script:
-  - ps: 'Write-Host "Running CTest:" -ForegroundColor Magenta'
-  - ctest -V --output-on-failure -C %CONFIGURATION%
+  - ps: 'Write-Host "Running tests:" -ForegroundColor Magenta'
+  - if "%BUILDER%"=="CMake" ctest -V --output-on-failure -C %CONFIGURATION%
+  - if "%BUILDER%"=="NMake" echo *** NMake does NOT build tests ***
 
 # If you need to debug AppVeyor session (https://www.appveyor.com/docs/how-to/rdp-to-build-worker), then:
 # 1. Uncomment the on_finish section below:



More information about the geos-commits mailing list