From b1c89e37bf8099fb0db2149afc134375b7c557dc Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 10 Jul 2014 06:39:10 -0700 Subject: [PATCH] Add support for MinGW build. --- appveyor.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 4ba21a0f..fe6bf2a9 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,6 +1,7 @@ environment: matrix: - build: msvc + generator: - build: mingw generator: -G "MinGW Makefiles" @@ -22,10 +23,20 @@ before_build: - cmake -DFMT_EXTRA_TESTS=ON $generator . build_script: - - msbuild /m:4 FORMAT.sln + - ps: | + if ($env:build -eq "mingw") { + mingw32-make -j4 + } else { + msbuild /m:4 FORMAT.sln + } test_script: - - msbuild RUN_TESTS.vcxproj + - ps: | + if ($env:build -eq "mingw") { + mingw32-make test + } else { + msbuild RUN_TESTS.vcxproj + } on_failure: - appveyor PushArtifact Testing/Temporary/LastTest.log