version: '{branch}-{build}'

os:
- Visual Studio 2015
- Visual Studio 2017

configuration:
- Release
- Debug

branches:
  only:
    - master

build:
  verbosity: minimal

init: []

before_build:
- ps: |
    if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2015")
    {
      del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
    }

build_script:
- md build
- cd build
- IF "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2015" (SET GEN="Visual Studio 14 2015") ELSE (SET GEN="Visual Studio 15 2017")
- cmake -Wno-dev -DPEGTL_BUILD_EXAMPLES=OFF --config "%CONFIGURATION%" .. -G%GEN%
- cmake --build . --config "%CONFIGURATION%"

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

install: []

version: '{branch}-{build}'

os:
- Visual Studio 2015
- Visual Studio 2017

platform:
- x86
- x64

configuration:
- Release
- Debug

branches:
  only:
    - master

build:
  verbosity: minimal

init: []

before_build:
- ps: |
    if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2015")
    {
      del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
    }

build_script:
- md build
- cd build
- IF "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2015" (SET GEN="Visual Studio 14 2015")
- IF "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2017" (SET GEN="Visual Studio 15 2017")
- cmake -Wno-dev -DPEGTL_BUILD_EXAMPLES=OFF --config "%CONFIGURATION%" .. -G%GEN%
- cmake --build . --config "%CONFIGURATION%"

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

install: []

Test both x86 and x64
Test both x86 and x64
