Skip to content

Commit

Permalink
add Qt 5.15 build #12
Browse files Browse the repository at this point in the history
* modernize Appveyor
  • Loading branch information
arBmind committed Sep 20, 2021
1 parent 121b3ef commit 5f73264
Showing 1 changed file with 80 additions and 49 deletions.
129 changes: 80 additions & 49 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
version: 1.5.1_{build}

os: unstable

services:
- mysql
- postgresql
Expand All @@ -15,53 +13,73 @@ environment:
POSTGRES_DRIVER_ARCHIVE: postgresql-9.3.5-1-windows-binaries.zip

matrix:
- BUILD: Qt4.8.7-x86-msvc2010
QMAKE_OPTIONS: "CONFIG+=NoPostgres"
COMPILERBAT: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86'
PRO_MAKE: nmake release
PRO_CHECK: 'cd ..\..\bin && dir && TestSqlite.exe'
QMAKESPEC: win32-msvc2010
QTMOVE: '$_14_ 4.8.7-msvc2010'
QTSUB: '4.8.7-msvc2010'
QTDOWNLOAD1: http://download.qt-project.org/archive/qt/4.8/4.8.7/qt-opensource-windows-x86-vs2010-4.8.7.exe
QTARCHIVE1: 'qt-opensource-windows-x86-vs2010-4.8.7.exe'
QTARCHIVE1_OPTS: '"-ir!?_14_\*" "-xr!*doc\*" "-xr!*examples\*" "-xr!*demos\*"'

- BUILD: 'Qt5.6.3-mingw32'
QTDIR: 'C:\Qt\5.6.3\mingw49_32'
COMPILERDIR: 'C:\Qt\Tools\mingw492_32\bin'
QMAKESPEC: win32-g++
PRO_MAKE: mingw32-make
PRO_CHECK: mingw32-make check

- BUILD: 'Qt5.6.3-mingw32-static'
QMAKE_OPTIONS: '"CONFIG+=static staticlib"'
QTDIR: 'C:\Qt\5.6.3\mingw49_32'
COMPILERDIR: 'C:\Qt\Tools\mingw492_32\bin'
QMAKESPEC: win32-g++
PRO_MAKE: mingw32-make
PRO_CHECK: mingw32-make check

- BUILD: 'Qt5.9.0-x86-msvc2015'
COMPILERBAT: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86'
PRO_MAKE: nmake
PRO_CHECK: nmake check
QTSUB: '5.9\msvc2015'
QTDOWNLOAD1: https://download.qt.io/online/qtsdkrepository/windows_x86/desktop/qt5_59/qt.59.win32_msvc2015/5.9.0-0-201705291821qtbase-Windows-Windows_10-MSVC2015-Windows-Windows_10-X86.7z
QTARCHIVE1: '5.9.0-0-201705291821qtbase-Windows-Windows_10-MSVC2015-Windows-Windows_10-X86.7z'

- BUILD: 'Qt5.9.0-x64-msvc2015'
COMPILERBAT: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64'
# - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
# BUILD: Qt4.8.7-x86-msvc2010
# QMAKE_OPTIONS: "CONFIG+=NoPostgres"
# COMPILERBAT: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86'
# PRO_MAKE: nmake release
# PRO_CHECK: 'cd ..\..\bin && dir && TestSqlite.exe'
# QMAKESPEC: win32-msvc2010
# QTMOVE: '$_14_ 4.8.7-msvc2010'
# QTSUB: '4.8.7-msvc2010'
# QTDOWNLOAD1: http://download.qt-project.org/archive/qt/4.8/4.8.7/qt-opensource-windows-x86-vs2010-4.8.7.exe
# QTARCHIVE1: 'qt-opensource-windows-x86-vs2010-4.8.7.exe'
# QTARCHIVE1_OPTS: '"-ir!?_14_\*" "-xr!*doc\*" "-xr!*examples\*" "-xr!*demos\*"'

# - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
# BUILD: 'Qt5.6.3-mingw32'
# QTDIR: 'C:\Qt\5.6.3\mingw49_32'
# COMPILERDIR: 'C:\Qt\Tools\mingw492_32\bin'
# QMAKESPEC: win32-g++
# PRO_MAKE: mingw32-make
# PRO_CHECK: mingw32-make check

# - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
# BUILD: 'Qt5.6.3-mingw32-static'
# QMAKE_OPTIONS: '"CONFIG+=static staticlib"'
# QTDIR: 'C:\Qt\5.6.3\mingw49_32'
# COMPILERDIR: 'C:\Qt\Tools\mingw492_32\bin'
# QMAKESPEC: win32-g++
# PRO_MAKE: mingw32-make
# PRO_CHECK: mingw32-make check

# - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
# BUILD: 'Qt5.9.0-x86-msvc2015'
# COMPILERBAT: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86'
# PRO_MAKE: nmake
# PRO_CHECK: nmake check
# QTSUB: '5.9\msvc2015'
# QTDOWNLOAD1: https://download.qt.io/online/qtsdkrepository/windows_x86/desktop/qt5_59/qt.59.win32_msvc2015/5.9.0-0-201705291821qtbase-Windows-Windows_10-MSVC2015-Windows-Windows_10-X86.7z
# QTARCHIVE1: '5.9.0-0-201705291821qtbase-Windows-Windows_10-MSVC2015-Windows-Windows_10-X86.7z'

# - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
# BUILD: 'Qt5.9.0-x64-msvc2015'
# COMPILERBAT: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64'
# PRO_MAKE: nmake
# PRO_CHECK: nmake check
# QTSUB: '5.9\msvc2015_64'
# QTDOWNLOAD1: https://download.qt.io/online/qtsdkrepository/windows_x86/desktop/qt5_59/qt.59.win64_msvc2015_64/5.9.0-0-201705291821qtbase-Windows-Windows_10-MSVC2015-Windows-Windows_10-X86_64.7z
# QTARCHIVE1: '5.9.0-0-201705291821qtbase-Windows-Windows_10-MSVC2015-Windows-Windows_10-X86_64.7z'
# MYSQL_DRIVER_URL: https://dev.mysql.com/get/Downloads/Connector-C/mysql-connector-c-6.1.5-winx64.zip
# MYSQL_DRIVER_ARCHIVE: mysql-connector-c-6.1.5-winx64.zip
# MYSQL_DRIVER_NAME: mysql-connector-c-6.1.5-winx64
# POSTGRES_DRIVER_URL: http://get.enterprisedb.com/postgresql/postgresql-9.3.5-1-windows-x64-binaries.zip
# POSTGRES_DRIVER_ARCHIVE: postgresql-9.3.5-1-windows-x64-binaries.zip

- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
BUILD: 'Qt5.15.2-x64-msvc2019'
COMPILERBAT: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"'
PRO_MAKE: nmake
PRO_CHECK: nmake check
QTSUB: '5.9\msvc2015_64'
QTDOWNLOAD1: https://download.qt.io/online/qtsdkrepository/windows_x86/desktop/qt5_59/qt.59.win64_msvc2015_64/5.9.0-0-201705291821qtbase-Windows-Windows_10-MSVC2015-Windows-Windows_10-X86_64.7z
QTARCHIVE1: '5.9.0-0-201705291821qtbase-Windows-Windows_10-MSVC2015-Windows-Windows_10-X86_64.7z'
MYSQL_DRIVER_URL: https://dev.mysql.com/get/Downloads/Connector-C/mysql-connector-c-6.1.5-winx64.zip
MYSQL_DRIVER_ARCHIVE: mysql-connector-c-6.1.5-winx64.zip
MYSQL_DRIVER_NAME: mysql-connector-c-6.1.5-winx64
POSTGRES_DRIVER_URL: http://get.enterprisedb.com/postgresql/postgresql-9.3.5-1-windows-x64-binaries.zip
POSTGRES_DRIVER_ARCHIVE: postgresql-9.3.5-1-windows-x64-binaries.zip
QTSUB: '5.15.2\msvc2019_64'
QTDOWNLOAD1: https://download.qt.io/online/qtsdkrepository/windows_x86/desktop/qt5_5152/qt.qt5.5152.win64_msvc2019_64/5.15.2-0-202011130602qtbase-Windows-Windows_10-MSVC2019-Windows-Windows_10-X86_64.7z
QTARCHIVE1: '5.15.2-0-202011130602qtbase-Windows-Windows_10-MSVC2019-Windows-Windows_10-X86_64.7z'
MYSQL_DRIVER_URL: https://downloads.mysql.com/archives/get/p/19/file/mysql-connector-c-6.1.11-winx64.zip
MYSQL_DRIVER_ARCHIVE: mysql-connector-c-6.1.11-winx64.zip
MYSQL_DRIVER_NAME: mysql-connector-c-6.1.11-winx64
POSTGRES_DRIVER_URL: https://get.enterprisedb.com/postgresql/postgresql-13.4-1-windows-x64-binaries.zip
POSTGRES_DRIVER_ARCHIVE: postgresql-13.4-1-windows-x64-binaries.zip
qmysql: 5.15.2

install:
# fix git\bin bug for mingw build
Expand All @@ -82,7 +100,10 @@ install:
- if defined QTMOVE move %QTMOVE%
- if defined QTSUB set "QTDIR=%CD%\%QTSUB%"
- if defined QTDOWNLOAD1 (echo [Paths]&& echo Prefix=..) >%QTDIR%\bin\qt.conf
- if defined QTDOWNLOAD1 (echo QT_EDITION = OpenSource) >>%QTDIR%\mkspecs\qconfig.pri
- if defined QTDOWNLOAD1 (copy %QTDIR%\mkspecs\qconfig.pri %QTDIR%\mkspecs\qconfig.pri.old)
- if defined QTDOWNLOAD1 (findstr /r /i /v "^QT_EDITION.*$ ^QT_LICHECK.*$" %QTDIR%\mkspecs\qconfig.pri.old& exit 0) >%QTDIR%\mkspecs\qconfig.pri
- if defined QTDOWNLOAD1 (echo QT_EDITION = OpenSource&& echo QT_LICHECK =) >>%QTDIR%\mkspecs\qconfig.pri
- if defined QTDOWNLOAD1 cat %QTDIR%\mkspecs\qconfig.pri
- set QT_PLUGIN_PATH=%QTDIR%\plugins
- cd ..

Expand All @@ -96,11 +117,21 @@ install:
- 7z x %POSTGRES_DRIVER_ARCHIVE% >nul

# finish install
- cd ..
- cd %APPVEYOR_BUILD_FOLDER%
- set "PATH=%QTDIR%\bin;%PATH%"
- if defined COMPILERDIR set "PATH=%COMPILERDIR%;%PATH%"
- '%COMPILERBAT%'

# install mysql plugin
- if define qmysl git clone --branch %qmysql% --depth 1 --no-tags git://code.qt.io/qt/qt5.git extern/qt5
- if define qmysl cd extern/qt5
- if define qmysl git submodule update --init qtbase
- if define qmysl cd qtbase/src/plugins/sqldrivers
- if define qmysl qmake -- MYSQL_INCDIR="%APPVEYOR_BUILD_FOLDER%\extern\%MYSQL_DRIVER_NAME%\include" MYSQL_LIBDIR="%APPVEYOR_BUILD_FOLDER%\extern\%MYSQL_DRIVER_NAME%\lib"
- if define qmysl '%PRO_MAKE%'
- if define qmysl '%PRO_MAKE% install'
- if define qmysl cd %APPVEYOR_BUILD_FOLDER%

before_build:
- move tests\mysql\MysqlConfig.h.appveyor tests\mysql\MysqlConfig.h
- move tests\postgresql\PostgresqlConfig.h.appveyor tests\postgresql\PostgresqlConfig.h
Expand Down

0 comments on commit 5f73264

Please sign in to comment.