Skip to content

Commit d0b8eae

Browse files
committed
Test MinGW (32-bit) build under Appveyor
1 parent 1e2f1b1 commit d0b8eae

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

appveyor.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@
1616
environment:
1717
matrix:
1818
- CLOWNFISH_HOST: c
19+
BUILD_ENV: mingw32
20+
- CLOWNFISH_HOST: c
21+
BUILD_ENV: msvc
1922
MSVC_VERSION: 10
2023
- CLOWNFISH_HOST: c
24+
BUILD_ENV: msvc
2125
MSVC_VERSION: 12
2226
- CLOWNFISH_HOST: perl
2327

devel/bin/appveyor-build.bat

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ exit /b 1
2323

2424
:test_c
2525

26+
if "%BUILD_ENV%" == "msvc" goto test_msvc
27+
if "%BUILD_ENV%" == "mingw32" goto test_mingw32
28+
29+
echo unknown BUILD_ENV: %BUILD_ENV%
30+
exit /b 1
31+
32+
:test_msvc
33+
2634
if "%MSVC_VERSION%" == "10" goto msvc_10
2735

2836
call "C:\Program Files (x86)\Microsoft Visual Studio %MSVC_VERSION%.0\VC\vcvarsall.bat" amd64
@@ -41,6 +49,18 @@ call configure && nmake && nmake test
4149

4250
exit /b
4351

52+
:test_mingw32
53+
54+
path C:\MinGW\bin;%path%
55+
56+
cd compiler\c
57+
call configure && mingw32-make && mingw32-make test || exit /b
58+
59+
cd ..\..\runtime\c
60+
call configure && mingw32-make && mingw32-make test
61+
62+
exit /b
63+
4464
:test_perl
4565

4666
path C:\MinGW\bin;%path%

0 commit comments

Comments
 (0)