@@ -33,7 +33,7 @@ branches:
3333
3434environment :
3535 global :
36- QTIFW : C:\Qt\Tools\QtInstallerFramework\3.1
36+ PYTHON_VERSION_MINOR : 7 # Default to Python 3.7
3737 MSYS_DIR : C:\msys64
3838 APPVEYOR_SAVE_CACHE_ON_ERROR : true
3939 CCACHE_DIR : C:\ccache.cache
@@ -46,28 +46,53 @@ environment:
4646 matrix :
4747 - QT : 5.12
4848 ARCH : 32
49- PYTHON_PATH : C:\Python37
49+ CONFIGURATION : release
50+ QTIFW : C:\Qt\Tools\QtInstallerFramework\3.1
5051
5152 - QT : 5.12
5253 ARCH : 64
53- PYTHON_PATH : C:\Python37-x64
54-
55- configuration :
56- # - debug
57- - release
54+ CONFIGURATION : release
55+ QTIFW : C:\Qt\Tools\QtInstallerFramework\3.1
5856
57+ - QT : 5.12
58+ ARCH : 32
59+ PYTHON_VERSION_MINOR : 8
60+ CONFIGURATION : release
61+ QTIFW : C:\Qt\Tools\QtInstallerFramework\3.1
62+
63+
64+ # Qt5.14 build takes too long (2x times) and reaches timeout
65+ # - QT: 5.14
66+ # ARCH: 32
67+ # PYTHON_VERSION_MINOR: 8
68+ # CONFIGURATION: release
69+ # QTIFW: C:\Qt\Tools\QtInstallerFramework\3.2
70+ # APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
71+
72+ matrix :
73+ allow_failures :
74+ - image : Visual Studio 2019 # build is extremally slow with this image
5975# cache:
6076# - '%BUILD_DIR% -> **\*.pr?, appveyor.yml'
6177# - '%CCACHE_DIR% -> **\*.pr?, appveyor.yml'
6278# - C:\ProgramData\chocolatey\bin -> appveyor.yml
6379# - C:\ProgramData\chocolatey\lib -> appveyor.yml
6480# - '%MSYS_DIR%\var\cache\pacman\pkg -> appveyor.yml'
81+ # for:
82+ # -
83+ # matrix:
84+ # only:
85+ # - QT: 5.14
86+ # image: Visual Studio 2019
6587
6688init :
89+ - git config --global core.symlinks true
6790 - git config --global core.autocrlf true
6891 - if "x%appveyor_pull_request_number%" NEQ "x" set APPVEYOR_CACHE_SKIP_SAVE=true
6992 - if "x%appveyor_repo_branch%" NEQ "xmaster" set APPVEYOR_CACHE_SKIP_SAVE=true
7093 - if "%ARCH%" == "32" (set PLATFORM=i686) else (set PLATFORM=x86_64)
94+ - set PYTHON_PATH=C:\Python3%PYTHON_VERSION_MINOR%
95+ - if "%ARCH%" == "64" (set PYTHON_PATH=%PYTHON_PATH%-x64)
7196 - set NEED_AUTOZIP=false
7297 - set NEED_BINZIP=false
7398 - set NEED_INSTALLER=false
81106 - if "x%appveyor_pull_request_number%" EQU "x" (set NEED_AUTOZIP=true)
82107# this is a tagged commit build
83108 - if "%APPVEYOR_REPO_TAG%" EQU "true" ( set "NEED_INSTALLER=true" && set NEED_AUTOZIP=true )
109+ # disable artifacts for Python38
110+ - if "%PYTHON_VERSION_MINOR%" NEQ "7" ( set "NEED_INSTALLER=false" && set NEED_AUTOZIP=false )
84111 - ' echo "Deploy installer executable: %NEED_INSTALLER%"'
85112 - ' echo "Deploy \\bin zip archive: %NEED_BINZIP%"'
86113 - ' echo "Deploy full zipped installer: %NEED_AUTOZIP%"'
@@ -95,12 +122,14 @@ clone_script:
95122
96123install :
97124 - set PYTHON_LIB=%PYTHON_PATH%\libs
98- - set QTDIR=C:\Qt\5.12 \mingw73_%ARCH%
99- - set MINGW=%QTDIR%\..\.. \Tools\mingw730_%ARCH%
125+ - set QTDIR=C:\Qt\%QT% \mingw73_%ARCH%
126+ - set MINGW=C:\Qt \Tools\mingw730_%ARCH%
100127 - set PATH=%QTDIR%\bin;%MINGW%\bin;C:\msys64\mingw%ARCH%\bin;C:\msys64\usr\bin;%PATH%
128+ - ' qmake -v && qmake -query'
101129 - ' dir %PYTHON_PATH% %MINGW% %QTDIR% %QTIFW% %MSYS_DIR% /w'
102130# need to reconfigure because it is anouther one git
103131 - git config --global core.autocrlf true
132+ - git config --global core.symlinks true
104133 - pacman --verbose --noconfirm --sync ccache rsync curl unzip
105134 - pacman -Su --noconfirm mingw%ARCH%/mingw-w64-%PLATFORM%-libusb mingw%ARCH%/mingw-w64-%PLATFORM%-zlib mingw%ARCH%/mingw-w64-%PLATFORM%-pkg-config
106135# --refresh --sysupgrade --ask=20
@@ -141,29 +170,31 @@ test_script:
141170
142171after_test :
143172# zip binaries
144- - cd %BUILD_DIR%/bin/release
173+ - cd %BUILD_DIR%/bin/%CONFIGURATION%
145174 - bash -c "env LC_ALL=C date -u"
146- - for %%f in (*.exe) do windeployqt --release %%f
147- - xcopy /I /Y %QTDIR%\plugins\platforms %BUILD_DIR%\bin\release \platforms
175+ - for %%f in (*.exe) do windeployqt --%CONFIGURATION% %%f
176+ - xcopy /I /Y %QTDIR%\plugins\platforms %BUILD_DIR%\bin\%CONFIGURATION% \platforms
148177 - set ZIP_NAME=trik-studio
149178 - set APPVEYOR_REPO_BRANCH_SAFE=%APPVEYOR_REPO_BRANCH:/=-%
150179 - if %APPVEYOR_REPO_TAG%==true (set ZIP_NAME=%ZIP_NAME%_%APPVEYOR_REPO_TAG_NAME%) else (set ZIP_NAME=%ZIP_NAME%-%APPVEYOR_REPO_BRANCH_SAFE%)
151- - set ZIP_NAME=%ZIP_NAME%_qt%QT%_%PLATFORM%.zip
180+ - set ZIP_NAME=%ZIP_NAME%_qt%QT%_%PLATFORM%_%CONFIGURATION% .zip
152181 - bash -c "env LC_ALL=C date -u"
153182 - echo "ZipName:%ZIP_NAME%"
154- - cd %BUILD_DIR%/bin/release
183+ - cd %BUILD_DIR%/bin/%CONFIGURATION%
155184 - 7z a -- %APPVEYOR_BUILD_FOLDER%\%ZIP_NAME% .
156185 - cd %APPVEYOR_BUILD_FOLDER%
157186 - if "%NEED_BINZIP%" EQU "true" (appveyor PushArtifact %ZIP_NAME%)
187+ - if "%CONFIGURATION%" NEQ "release" ( exit /b 0 )
158188# build installer
159189 - cd %APPVEYOR_BUILD_FOLDER%/installer
160190 - bash -c "env LC_ALL=C date -u"
161191 - build-trik-studio.sh %QTDIR%\bin %QTIFW%\bin %BUILD_DIR%
162- - set INSTALLER_NAME=trik-studio-installer
192+ - set INSTALLER_NAME=trik-studio
163193 - if %APPVEYOR_REPO_TAG%==true (set INSTALLER_NAME=%INSTALLER_NAME%_%APPVEYOR_REPO_TAG_NAME%) else (set INSTALLER_NAME=%INSTALLER_NAME%-%APPVEYOR_REPO_BRANCH_SAFE%)
194+ - if "%PYTHON_VERSION_MINOR%" NEQ "7" (set INSTALLER_NAME=%INSTALLER_NAME%-Python3%PYTHON_VERSION_MINOR%)
164195 - set INSTALLER_NAME=%INSTALLER_NAME%-%PLATFORM%
165196 - set AUTOINSTALLER_ZIP_NAME=%INSTALLER_NAME%-auto.zip
166- - set INSTALLER_NAME=%INSTALLER_NAME%.exe
197+ - set INSTALLER_NAME=%INSTALLER_NAME%-installer .exe
167198 - echo "Installer:%INSTALLER_NAME%"
168199 - ren trik-studio*installer*.exe %INSTALLER_NAME%
169200 - cd %APPVEYOR_BUILD_FOLDER%
@@ -202,6 +233,8 @@ deploy:
202233 github_release_artifact : installer\$(AUTOINSTALLER_ZIP_NAME)
203234 on :
204235 ARCH : 32
236+ QT : 5.12
237+ CONFIGURATION : release
205238 APPVEYOR_REPO_TAG : true
206239 APPVEYOR_PROJECT_SLUG : $(master_ci)
207240
0 commit comments