Skip to content

Commit

Permalink
Configure AppVeyor to run Qt 6.x tests
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbrunel committed Jun 30, 2022
1 parent 9f01c13 commit 21faa67
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 20 deletions.
43 changes: 25 additions & 18 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,34 @@
image: Visual Studio 2015

init:
- cmd: call "C:\Program Files (x86)\Microsoft Visual Studio "%VSVER%".0\VC\vcvarsall.bat" %ARCH%
- cmd: qmake --version

# https://www.appveyor.com/docs/build-configuration/
# https://www.appveyor.com/docs/lang/cpp/#visual-studio
# https://www.appveyor.com/docs/windows-images-software/#qt

environment:
PATH: '%PATH%;%QTDIR%\bin'
matrix:
- QTDIR: C:\Qt\5.6\msvc2013
VSVER: 12
ARCH: x86
- QTDIR: C:\Qt\5.9\msvc2013_64
VSVER: 12
ARCH: x64
- QTDIR: C:\Qt\latest\msvc2015_64
VSVER: 14
ARCH: x64
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
QTDIR: C:\Qt\5.6\msvc2013
SETUP_CMD: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat
SETUP_ARG: x86

- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
QTDIR: C:\Qt\5.15\msvc2019_64
SETUP_CMD: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat

- 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:
- cmd: cmake -G "NMake Makefiles"
- cmd: cmake --build .
- cmake -G "NMake Makefiles"
- cmake --build .

test_script:
- cmd: cmake --build . --target test
- cmake --build . --target test

matrix:
fast_finish: true
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
sudo: required
dist: trusty
dist: xenial
language: cpp
compiler: gcc

before_install:
- 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

install:
Expand Down

0 comments on commit 21faa67

Please sign in to comment.