version: 0.4.{build}
image: Visual Studio 2017

platform: x64

environment:
  global:
    PLATFORMTOOLSET: "v140"
  MSBUILD_FLAGS: /verbosity:minimal /maxcpucount
  matrix:
  - CMAKE_GENERATOR: "Visual Studio 15 2017"
    QT5: C:\Qt\5.10.1\msvc2015
  - CMAKE_GENERATOR: "Visual Studio 15 2017 Win64"
    QT5: C:\Qt\5.10.1\msvc2017_64
    
branches:
  only:
  - master

configuration: Release
shallow_clone: true
clone_depth: 5
matrix:
  fast_finish: false # set this flag to immediately finish build once one of the jobs fails.

before_build:
- if exist "%QT5%" set Path=%QT5%\bin;%Path%
- md build
- cmake -H. -Bbuild -G "%CMAKE_GENERATOR%" "-DCMAKE_PREFIX_PATH=%QT5%"

build_script:
- if "%APPVEYOR_REPO_TAG%"=="true" (set CONFIGURATION=RelWithDebInfo) else (set CONFIGURATION=Debug)
- cmake --build build --config "%CONFIGURATION%" -- %MSBUILD_FLAGS%

#after_build:
#- cmake --build build --config "%CONFIGURATION%" --target check -- %MSBUILD_FLAGS%
#- cmake --build build --config "%CONFIGURATION%" --target package -- %MSBUILD_FLAGS%

version: 0.4.{build}
image: Visual Studio 2017

platform: x64

environment:
  global:
    PLATFORMTOOLSET: "v140"
  MSBUILD_FLAGS: /verbosity:minimal /maxcpucount
  matrix:
  - CMAKE_GENERATOR: "Visual Studio 15 2017"
    QT5: C:\Qt\5.10.1\msvc2015
  - CMAKE_GENERATOR: "Visual Studio 15 2017 Win64"
    QT5: C:\Qt\5.10.1\msvc2017_64
    
branches:
  only:
  - master
  - develop

configuration: Release
shallow_clone: true
clone_depth: 5
matrix:
  fast_finish: false # set this flag to immediately finish build once one of the jobs fails.

before_build:
- if exist "%QT5%" set Path=%QT5%\bin;%Path%
- md build
- cmake -H. -Bbuild -G "%CMAKE_GENERATOR%" "-DCMAKE_PREFIX_PATH=%QT5%"

build_script:
- if "%APPVEYOR_REPO_TAG%"=="true" (set CONFIGURATION=RelWithDebInfo) else (set CONFIGURATION=Debug)
- cmake --build build --config "%CONFIGURATION%" -- %MSBUILD_FLAGS%

#after_build:
#- cmake --build build --config "%CONFIGURATION%" --target check -- %MSBUILD_FLAGS%
#- cmake --build build --config "%CONFIGURATION%" --target package -- %MSBUILD_FLAGS%

Add develop branch to Appveyor
Add develop branch to Appveyor