From d6585e115a12ce6211ddf4bc33704ccdd8036e86 Mon Sep 17 00:00:00 2001 From: Branden Archer Date: Mon, 19 Dec 2016 10:36:31 -0500 Subject: [PATCH] Compile using MinGW and MinGW64 in AppVeyor --- appveyor.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index 45853d9..76bd0e3 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -24,6 +24,8 @@ environment: - platform: msvc - platform: vs - platform: cygwin + - platform: mingw32 + - platform: mingw64msys # scripts that are called at very beginning, before repo cloning # init: @@ -45,18 +47,28 @@ configuration: Release # scripts to run before build before_build: - cd c:\projects\check + # Remove the following from the path, as it will interfere with + # the MinGW builds + - set PATH=%PATH:C:\Program Files\Git\usr\bin;=% - 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% - if %platform%==cygwin set PATH=C:\cygwin\bin;%PATH% - if %platform%==cygwin bash -c "autoreconf -i" - if %platform%==cygwin bash -c "./configure" + - if %platform%==mingw32 set PATH=C:\MinGW\bin;%PATH% + - if %platform%==mingw32 cmake -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=%P% + - if %platform%==mingw64msys set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH% + - if %platform%==mingw64msys bash -c "autoreconf -i" + - if %platform%==mingw64msys bash -c "./configure" build_script: # build code and unit tests - if %platform%==msvc nmake - if %platform%==vs msbuild "ALL_BUILD.vcxproj" - if %platform%==cygwin bash -c "make" + - if %platform%==mingw32 mingw32-make + - if %platform%==mingw64msys bash -c "make" test_script: # run unit tests @@ -65,3 +77,6 @@ test_script: - if %platform%==vs ctest --extra-verbose -C Release # Unit tests on Cygwin currently do not all pass #- if %platform%==cygwin bash -c "make check || cat tests/test-suite.log && false" + # check_check does not work on MinGW + #- if %platform%==mingw32 tests\check_check.exe + - if %platform%==mingw64msys bash -c "tests/check_check" -- 2.40.0