version: '{build}'

only_commits:
  files:
  - CMakeLists.txt
  - .appveyor.yml
  - include/
  - tests/

image:
- Visual Studio 2017
- Visual Studio 2019

configuration:
- Release
- Debug

platform:
- x64

init:
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" ( set generator="Visual Studio 16 2019" )
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" ( set generator="Visual Studio 15 2017" )

before_build:
- cmd: |-
    mkdir build
    cd build
    cmake -G %generator% .. 

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

test_script:
- set CTEST_OUTPUT_ON_FAILURE=1
- ctest -j 2
version: '{build}'

only_commits:
  files:
  - CMakeLists.txt
  - .appveyor.yml
  - include/
  - tests/

image:
- Visual Studio 2017
- Visual Studio 2019

configuration:
- Release
- Debug

platform:
- x64

init:
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" ( set generator="Visual Studio 16 2019" )
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" ( set generator="Visual Studio 15 2017" )

before_build:
- cmd: |-
    mkdir build
    cd build
    cmake -G %generator% .. 

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

test_script:
- set CTEST_OUTPUT_ON_FAILURE=1
- ctest -C %CONFIGURATION% -j 2
Add configuration flag for ctest
Add configuration flag for ctest
