|
1 | 1 | version: '{branch}-{build}' |
2 | 2 |
|
| 3 | +branches: |
| 4 | + only: |
| 5 | + - master |
| 6 | + |
3 | 7 | os: |
4 | 8 | - Visual Studio 2015 |
5 | | -- Visual Studio 2017 |
6 | | - |
7 | | -platform: |
8 | | -- x86 |
9 | | -- x64 |
10 | 9 |
|
11 | 10 | configuration: |
12 | 11 | - Release |
13 | 12 | - Debug |
14 | 13 |
|
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 |
18 | 25 |
|
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 |
21 | 40 |
|
22 | 41 | init: [] |
23 | 42 |
|
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: [] |
30 | 44 |
|
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;=%") |
32 | 48 | - md build |
33 | 49 | - 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: |
37 | 53 | - cmake --build . --config "%CONFIGURATION%" |
38 | 54 |
|
39 | 55 | test_script: |
40 | 56 | - ctest -C "%CONFIGURATION%" --output-on-failure |
41 | | - |
42 | | -install: [] |
|
0 commit comments