configuration:
  - Debug
  - Release

environment:
  CTEST_OUTPUT_ON_FAILURE: 1
  matrix:
  - BUILD: msvc
  - BUILD: msvc
    PLATFORM: x64
  - BUILD: mingw

before_build:
  # Workaround for CMake not wanting sh.exe on PATH for MinGW.
  - set PATH=%PATH:C:\Program Files\Git\usr\bin;=%

build_script:
  - python support/appveyor-build.py

on_failure:
  - appveyor PushArtifact Testing/Temporary/LastTest.log
  - appveyor AddTest test
