Skip to content

Commit 831894a

Browse files
committed
Add tests with MinGW/MinGW-w64
1 parent 748a7aa commit 831894a

File tree

1 file changed

+36
-22
lines changed

1 file changed

+36
-22
lines changed

.appveyor.yml

Lines changed: 36 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,56 @@
11
version: '{branch}-{build}'
22

3+
branches:
4+
only:
5+
- master
6+
37
os:
48
- Visual Studio 2015
5-
- Visual Studio 2017
6-
7-
platform:
8-
- x86
9-
- x64
109

1110
configuration:
1211
- Release
1312
- Debug
1413

15-
branches:
16-
only:
17-
- master
14+
environment:
15+
matrix:
16+
- GENERATOR: Visual Studio 14 2015
17+
18+
- GENERATOR: Visual Studio 14 2015 Win64
19+
20+
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
21+
GENERATOR: Visual Studio 15 2017
22+
23+
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
24+
GENERATOR: Visual Studio 15 2017 Win64
1825

19-
build:
20-
verbosity: minimal
26+
- GENERATOR: MinGW Makefiles
27+
BINDIR: C:\MinGW\bin
28+
29+
- GENERATOR: MinGW Makefiles
30+
COMPILER: MinGW 5
31+
BINDIR: C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin
32+
33+
- GENERATOR: MinGW Makefiles
34+
COMPILER: MinGW 6
35+
BINDIR: C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin
36+
37+
- GENERATOR: MinGW Makefiles
38+
COMPILER: MinGW 6
39+
BINDIR: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin
2140

2241
init: []
2342

24-
before_build:
25-
- ps: |
26-
if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2015")
27-
{
28-
del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
29-
}
43+
install: []
3044

31-
build_script:
45+
before_build:
46+
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets")
47+
- if defined BINDIR (set "PATH=%BINDIR%;%PATH:C:\Program Files\Git\usr\bin;=%")
3248
- md build
3349
- cd build
34-
- IF "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2015" (SET GEN="Visual Studio 14 2015")
35-
- IF "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2017" (SET GEN="Visual Studio 15 2017")
36-
- cmake -Wno-dev --config "%CONFIGURATION%" .. -G%GEN%
50+
- cmake -Wno-dev --config "%CONFIGURATION%" -G "%GENERATOR%" ..
51+
52+
build_script:
3753
- cmake --build . --config "%CONFIGURATION%"
3854

3955
test_script:
4056
- ctest -C "%CONFIGURATION%" --output-on-failure
41-
42-
install: []

0 commit comments

Comments
 (0)