branches:
  only:
    - master

clone_depth: 5

environment:
  matrix:
    - CMAKE_GENERATOR: "Visual Studio 12 2013"
      CMAKE_PREFIX_PATH: C:/Qt/5.3/msvc2013_opengl
      CONFIGURATION: Release
    - CMAKE_GENERATOR: "Visual Studio 14 2015 Win64"
      CMAKE_PREFIX_PATH: C:/Qt/5.3/msvc2013_64_opengl
      CONFIGURATION: Release
  BOOST_ROOT: c:\Libraries\boost_1_59_0

install:
  - set PATH=%PATH%;%CMAKE_PREFIX_PATH%\bin

build_script:
  - mkdir build && cd build
  - cmake .. -G"%CMAKE_GENERATOR%" -DBoost_INCLUDE_DIR=%BOOST_ROOT%
  - cmake --build . --config %CONFIGURATION%
  - cmake --build . --config %CONFIGURATION% --target install

test_script:
  - ctest -C %CONFIGURATION% -V
  - qmlscene --quit -I lib/qml ../examples/TestApp.qml

branches:
  only:
    - master

clone_depth: 5

environment:
  matrix:
    - CMAKE_GENERATOR: "Visual Studio 12 2013"
      CMAKE_PREFIX_PATH: C:/Qt/5.6.3/msvc2013
      CONFIGURATION: Release
    - CMAKE_GENERATOR: "Visual Studio 14 2015 Win64"
      CMAKE_PREFIX_PATH: C:/Qt/5.6.3/msvc2015_64
      CONFIGURATION: Release
  BOOST_ROOT: c:\Libraries\boost_1_60_0

install:
  - set PATH=%PATH%;%CMAKE_PREFIX_PATH%\bin

build_script:
  - mkdir build && cd build
  - cmake .. -G"%CMAKE_GENERATOR%" -DBoost_INCLUDE_DIR=%BOOST_ROOT%
  - cmake --build . --config %CONFIGURATION%
  - cmake --build . --config %CONFIGURATION% --target install

test_script:
  - ctest -C %CONFIGURATION% -V
  - qmlscene --quit -I lib/qml ../examples/TestApp.qml

Fix building and testing on AppVeyor
Fix building and testing on AppVeyor

The default AppVeyor build worker image, Visual Studio 2015, doesn't
contain Qt 5.3 nor Boost 1.59.0 anymore.

See https://www.appveyor.com/docs/build-environment/#boost and
https://www.appveyor.com/docs/build-environment/#qt.
