From 6dd532b4564af8d1a274e85daf29ebf5ff0dd162 Mon Sep 17 00:00:00 2001 From: vitaut Date: Thu, 12 Mar 2015 06:13:51 -0700 Subject: [PATCH] Add mingw bin directory to path and enable mingw build --- appveyor.yml | 10 +++++----- support/appveyor-build.py | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 19e40c14..bdcea01d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,12 +1,12 @@ environment: CTEST_OUTPUT_ON_FAILURE: 1 matrix: - - BUILD: msvc - CONFIG: Debug - - BUILD: msvc - CONFIG: Release -# - BUILD: mingw +# - BUILD: msvc # CONFIG: Debug +# - BUILD: msvc +# CONFIG: Release + - BUILD: mingw + CONFIG: Debug # - BUILD: mingw # CONFIG: Release diff --git a/support/appveyor-build.py b/support/appveyor-build.py index 17a24408..7aa61d78 100755 --- a/support/appveyor-build.py +++ b/support/appveyor-build.py @@ -12,7 +12,8 @@ if build == 'mingw': build_command = ['mingw32-make', '-j4'] test_command = ['mingw32-make', 'test'] # Remove the path to Git bin directory from $PATH because it breaks MinGW config. - os.environ['PATH'] = os.environ['PATH'].replace(r'C:\Program Files (x86)\Git\bin', '') + path = os.environ['PATH'].replace(r'C:\Program Files (x86)\Git\bin', '') + os.environ['PATH'] = path + r';C:\MinGW\bin' else: build_command = ['msbuild', '/m:4', '/p:Config=' + config, 'FORMAT.sln'] test_command = ['msbuild', 'RUN_TESTS.vcxproj']