Test MinGW (32-bit) build under Appveyor

Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/d0b8eaee
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/d0b8eaee
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/d0b8eaee

Branch: refs/heads/master
Commit: d0b8eaee215c784a816600790c3fb724b4d4c174
Parents: 1e2f1b1
Author: Nick Wellnhofer <[email protected]>
Authored: Sat May 21 16:18:48 2016 +0200
Committer: Nick Wellnhofer <[email protected]>
Committed: Sat May 21 17:23:52 2016 +0200

----------------------------------------------------------------------
 appveyor.yml                 |  4 ++++
 devel/bin/appveyor-build.bat | 20 ++++++++++++++++++++
 2 files changed, 24 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/d0b8eaee/appveyor.yml
----------------------------------------------------------------------
diff --git a/appveyor.yml b/appveyor.yml
index 8146058..f60e8ca 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -16,8 +16,12 @@
 environment:
   matrix:
     - CLOWNFISH_HOST: c
+      BUILD_ENV: mingw32
+    - CLOWNFISH_HOST: c
+      BUILD_ENV: msvc
       MSVC_VERSION: 10
     - CLOWNFISH_HOST: c
+      BUILD_ENV: msvc
       MSVC_VERSION: 12
     - CLOWNFISH_HOST: perl
 

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/d0b8eaee/devel/bin/appveyor-build.bat
----------------------------------------------------------------------
diff --git a/devel/bin/appveyor-build.bat b/devel/bin/appveyor-build.bat
index 11b910e..6d88a77 100644
--- a/devel/bin/appveyor-build.bat
+++ b/devel/bin/appveyor-build.bat
@@ -23,6 +23,14 @@ exit /b 1
 
 :test_c
 
+if "%BUILD_ENV%" == "msvc" goto test_msvc
+if "%BUILD_ENV%" == "mingw32" goto test_mingw32
+
+echo unknown BUILD_ENV: %BUILD_ENV%
+exit /b 1
+
+:test_msvc
+
 if "%MSVC_VERSION%" == "10" goto msvc_10
 
 call "C:\Program Files (x86)\Microsoft Visual Studio 
%MSVC_VERSION%.0\VC\vcvarsall.bat" amd64
@@ -41,6 +49,18 @@ call configure && nmake && nmake test
 
 exit /b
 
+:test_mingw32
+
+path C:\MinGW\bin;%path%
+
+cd compiler\c
+call configure && mingw32-make && mingw32-make test || exit /b
+
+cd ..\..\runtime\c
+call configure && mingw32-make && mingw32-make test
+
+exit /b
+
 :test_perl
 
 path C:\MinGW\bin;%path%

Reply via email to