# Configuration file for AppVeyor CI
configuration: Release

environment:
  VCINSTALLDIR: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\

  matrix:
    - QTDIR: C:\Qt\5.7\mingw53_32
      CMAKE_GENERATOR: MinGW Makefiles
      MINGW_PATH: C:\Qt\Tools\mingw530_32

    - QTDIR: C:\Qt\5.9\mingw53_32
      CMAKE_GENERATOR: MinGW Makefiles
      MINGW_PATH: C:\Qt\Tools\mingw530_32

    - QTDIR: C:\Qt\5.9\msvc2015
      CMAKE_GENERATOR: Visual Studio 14 2015
      VC_VARS_ARCH: x86

    - QTDIR: C:\Qt\5.9\msvc2015_64
      CMAKE_GENERATOR: Visual Studio 14 2015 Win64
      VC_VARS_ARCH: amd64

# Parameters for default build commands (build_script is used instead).
build:

install:
- utils\appveyor\install.bat

before_build:
- utils\appveyor\before_build.bat

build_script:
- utils\appveyor\build_script.bat

after_build:
- utils\appveyor\after_build.bat

artifacts:
- path: 'copyq*.zip'
  name: CopyQ Portable

- path: 'copyq-*-setup.exe'
  name: CopyQ Setup

# Upload test log files.
on_finish:
- ps: Get-ChildItem -recurse -include copyq*.log* | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }

matrix:
  fast_finish: true     # set this flag to immediately finish build once one of the jobs fails.
