.appveyor.yml 1.22 KB
Newer Older
Daniel Frey's avatar
Daniel Frey committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
version: '{branch}-{build}'

os:
- Visual Studio 2015

configuration:
- Release
- Debug

environment:
  matrix:
    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
      GENERATOR: Visual Studio 15 2017

    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
      GENERATOR: Visual Studio 15 2017 Win64

    - GENERATOR: MinGW Makefiles
      BINDIR: C:\MinGW\bin

    - GENERATOR: MinGW Makefiles
      COMPILER: MinGW 5
      BINDIR: C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin

    - GENERATOR: MinGW Makefiles
      COMPILER: MinGW 6
      BINDIR: C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin

    - GENERATOR: MinGW Makefiles
      COMPILER: MinGW 6
      BINDIR: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin

init: []

install: []

before_build:
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets")
- if defined BINDIR (set "PATH=%BINDIR%;%PATH:C:\Program Files\Git\usr\bin;=%")
- md build
- cd build
Daniel Frey's avatar
Daniel Frey committed
42
- cmake -Wno-dev --config "%CONFIGURATION%" -G "%GENERATOR%" ..
Daniel Frey's avatar
Daniel Frey committed
43 44 45 46 47 48

build_script:
- cmake --build . --config "%CONFIGURATION%"

test_script:
- ctest -C "%CONFIGURATION%" --output-on-failure