version: '{build}'
branches: 
  only:
  - master
image:
- Visual Studio 2015
- Visual Studio 2017
- Visual Studio 2019

clone_folder: c:\projects\ewahboolarray

configuration:
- Release
- Debug

platform:
- x64

environment:
  matrix:
  - arch: Win64

init:
- set arch=
- if "%arch%"=="Win64" ( set arch= Win64)
- echo %arch%
- echo %APPVEYOR_BUILD_WORKER_IMAGE%
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" ( set generator="Visual Studio 15 2017%arch%" )
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" ( set generator="Visual Studio 14 2015%arch%" )
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" ( set generator="Visual Studio 12 2013%arch%" )
- echo %generator%

before_build:
- cmd: >-
    dir /s

    mkdir build

    cd build

    cmake --version

    cmake -DCMAKE_GENERATOR_PLATFORM=x64 ..    

    dir /s ..
    
build:
  project: c:\projects\ewahboolarray\build\EWAHBoolArray.sln
  verbosity: detailed
  parallel: true 
