Configure AppVeyor to run Qt 6.x tests

This commit is contained in:
Simon Brunel 2022-06-30 23:17:02 +02:00
parent 9f01c130cd
commit 21faa67b58
2 changed files with 27 additions and 20 deletions

View File

@ -1,27 +1,34 @@
image: Visual Studio 2015 # https://www.appveyor.com/docs/build-configuration/
# https://www.appveyor.com/docs/lang/cpp/#visual-studio
init:
- cmd: call "C:\Program Files (x86)\Microsoft Visual Studio "%VSVER%".0\VC\vcvarsall.bat" %ARCH%
- cmd: qmake --version
# https://www.appveyor.com/docs/windows-images-software/#qt # https://www.appveyor.com/docs/windows-images-software/#qt
environment: environment:
PATH: '%PATH%;%QTDIR%\bin' PATH: '%PATH%;%QTDIR%\bin'
matrix: matrix:
- QTDIR: C:\Qt\5.6\msvc2013 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
VSVER: 12 QTDIR: C:\Qt\5.6\msvc2013
ARCH: x86 SETUP_CMD: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat
- QTDIR: C:\Qt\5.9\msvc2013_64 SETUP_ARG: x86
VSVER: 12
ARCH: x64 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- QTDIR: C:\Qt\latest\msvc2015_64 QTDIR: C:\Qt\5.15\msvc2019_64
VSVER: 14 SETUP_CMD: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat
ARCH: x64
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
QTDIR: C:\Qt\6.2\msvc2019_64
SETUP_CMD: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat
before_build:
- call "%SETUP_CMD%" %SETUP_ARG%
- cmake --version
- qmake --version
build_script: build_script:
- cmd: cmake -G "NMake Makefiles" - cmake -G "NMake Makefiles"
- cmd: cmake --build . - cmake --build .
test_script: test_script:
- cmd: cmake --build . --target test - cmake --build . --target test
matrix:
fast_finish: true

View File

@ -1,11 +1,11 @@
sudo: required sudo: required
dist: trusty dist: xenial
language: cpp language: cpp
compiler: gcc compiler: gcc
before_install: before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo add-apt-repository -y ppa:beineri/opt-qt563-trusty - sudo add-apt-repository -y ppa:beineri/opt-qt563-xenial
- sudo apt-get update -qq - sudo apt-get update -qq
install: install: