version: 1.0.{build}

clone_depth: 1

configuration:
    - Release

os: Visual Studio 2015
image: Visual Studio 2015

platform:
    - x64

matrix:
    fast_finish: true

build_script:
    - IF "%platform%" == "x64" set W64="-GVisual Studio 14 2015 Win64"
    - cmake %W64% -DBUILD_SHARED_LIBS=ON
                  -DCMAKE_BUILD_TYPE=Release
                  -DENABLE_PYTHON=ON
                  -DBUILD_APPLICATIONS=ON
    - cmake --build . --config %configuration% --target install

test_script:
    - ctest --config %configuration% --output-on-failure
