2018-12-20 01:58:18 +08:00
|
|
|
version: 0.{build}-{branch}
|
|
|
|
|
|
|
|
image:
|
|
|
|
- Visual Studio 2017
|
|
|
|
|
|
|
|
environment:
|
|
|
|
global:
|
|
|
|
QTVER: 5.11
|
|
|
|
JOMDIR: C:\Qt\Tools\QtCreator\bin
|
|
|
|
MINGWDIR: C:\Qt\Tools\mingw530_32
|
2019-06-21 21:46:53 +08:00
|
|
|
VSVER: 0
|
2018-12-20 01:58:18 +08:00
|
|
|
|
|
|
|
matrix:
|
2019-06-21 21:46:53 +08:00
|
|
|
- QTABI: mingw53_32
|
|
|
|
ARCH: x86
|
|
|
|
MAKETOOL: mingw32-make
|
|
|
|
CMAKE_GENERATOR: "MinGW Makefiles"
|
|
|
|
USE_CMAKE: true
|
|
|
|
MSBUILD_FLAGS:
|
2019-07-01 03:11:53 +08:00
|
|
|
# - QTABI: mingw53_32
|
|
|
|
# ARCH: x86
|
|
|
|
# QMAKESPEC: win32-g++
|
|
|
|
# MAKETOOL: mingw32-make
|
|
|
|
# USE_CMAKE: false
|
2018-12-20 01:58:18 +08:00
|
|
|
- QTABI: msvc2017_64
|
|
|
|
ARCH: x64
|
|
|
|
VSVER: 2017
|
2019-06-21 17:01:03 +08:00
|
|
|
CMAKE_GENERATOR: "Visual Studio 15 2017 Win64"
|
2019-06-21 19:51:32 +08:00
|
|
|
USE_CMAKE: true
|
|
|
|
MSBUILD_FLAGS: /verbosity:minimal /maxcpucount
|
2019-07-01 03:11:53 +08:00
|
|
|
# - QTABI: msvc2017_64
|
|
|
|
# ARCH: x64
|
|
|
|
# VSVER: 2017
|
|
|
|
# QMAKESPEC: win32-msvc
|
|
|
|
# MAKETOOL: jom
|
|
|
|
# USE_CMAKE: false
|
2019-06-21 17:01:03 +08:00
|
|
|
- QTABI: msvc2015
|
|
|
|
ARCH: x86
|
|
|
|
VSVER: 14
|
|
|
|
CMAKE_GENERATOR: "Visual Studio 15 2017"
|
2019-06-21 19:51:32 +08:00
|
|
|
USE_CMAKE: true
|
|
|
|
MSBUILD_FLAGS: /verbosity:minimal /maxcpucount
|
2019-06-22 20:21:32 +08:00
|
|
|
# - QTABI: msvc2015
|
|
|
|
# ARCH: x86
|
|
|
|
# VSVER: 14
|
|
|
|
# QMAKESPEC: win32-msvc
|
|
|
|
# MAKETOOL: jom
|
|
|
|
# USE_CMAKE: false
|
2018-12-20 01:58:18 +08:00
|
|
|
|
|
|
|
skip_tags: true
|
|
|
|
|
|
|
|
build:
|
|
|
|
parallel: true
|
|
|
|
verbosity: detailed
|
|
|
|
|
|
|
|
configuration:
|
|
|
|
- release
|
2019-11-24 19:20:03 +08:00
|
|
|
# - debug
|
2018-12-20 01:58:18 +08:00
|
|
|
|
2019-06-21 21:46:53 +08:00
|
|
|
|
2018-12-20 01:58:18 +08:00
|
|
|
install:
|
|
|
|
- IF %VSVER% GTR 14 (
|
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\%VSVER%\Community\VC\Auxiliary\Build\vcvarsall.bat" %ARCH%
|
|
|
|
) ELSE (
|
|
|
|
IF %VSVER% GTR 0 (
|
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio "%VSVER%".0\VC\vcvarsall.bat" %ARCH%
|
|
|
|
) ELSE (
|
|
|
|
set "PATH=%MINGWDIR%\bin;%PATH%"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
- set PATH=C:\Qt\%QTVER%\%QTABI%\bin;%JOMDIR%;%PATH%
|
|
|
|
- echo "BUILD ID Qt%QTVER%_%QTABI%_%APPVEYOR_BUILD_VERSION%_%CONFIGURATION%"
|
2019-06-21 21:46:53 +08:00
|
|
|
# Rename sh.exe as sh.exe in PATH interferes with MinGW
|
|
|
|
- rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe"
|
2020-08-14 18:07:43 +08:00
|
|
|
- cmd: choco install OpenCV
|
|
|
|
- cmd: set OPENCV_DIR=C:\tools\opencv\build
|
2018-12-20 01:58:18 +08:00
|
|
|
|
|
|
|
build_script:
|
2019-01-26 03:16:04 +08:00
|
|
|
# - dir "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include"
|
|
|
|
# - type "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\random"
|
|
|
|
# - dir "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE"
|
|
|
|
# - type "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\random"
|
2022-04-16 02:41:56 +08:00
|
|
|
- dir c:\Qt\
|
2018-12-20 01:58:18 +08:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2019-06-21 19:51:32 +08:00
|
|
|
- if "%CONFIGURATION%"=="release" (set CMAKE_CONFIGURATION=Release) else (set CMAKE_CONFIGURATION=Debug)
|
|
|
|
- if [%USE_CMAKE%]==[true] (
|
2019-06-21 17:01:03 +08:00
|
|
|
echo "Call CMake..."
|
2019-06-21 19:51:32 +08:00
|
|
|
cmake --version &&
|
|
|
|
cmake -G "%CMAKE_GENERATOR%" "-DCMAKE_PREFIX_PATH=%QT5%" .. &&
|
|
|
|
echo "Build..." &&
|
2019-06-21 21:46:53 +08:00
|
|
|
cmake --build . --config "%CMAKE_CONFIGURATION%" -- %MSBUILD_FLAGS% )
|
2019-06-21 19:51:32 +08:00
|
|
|
else (
|
|
|
|
echo "Call QMake..." &&
|
|
|
|
qmake.exe -v &&
|
|
|
|
qmake.exe CONFIG+=%CONFIGURATION% ..\JKQtPlotterBuildAllExamples.pro &&
|
|
|
|
echo "Build..." &&
|
|
|
|
call %MAKETOOL% &&
|
|
|
|
cd ..)
|
2018-12-20 01:58:18 +08:00
|
|
|
|
2019-01-19 23:25:31 +08:00
|
|
|
#artifacts:
|
|
|
|
# - path: build\staticlib\**\*.a
|
|
|
|
# name: staticlib %QTVER%%QTABI%
|
|
|
|
# - path: build\sharedlib\**\*.a
|
|
|
|
# name: sharedlib %QTVER%%QTABI%
|
|
|
|
# - path: build\staticlib\**\*.lib
|
|
|
|
# name: staticlib %QTVER%%QTABI%
|
|
|
|
# - path: build\sharedlib\**\*.lib
|
|
|
|
# name: sharedlib %QTVER%%QTABI%
|
|
|
|
# - path: build\sharedlib\**\*.dll
|
|
|
|
# name: dll %QTVER%%QTABI%
|
2019-01-19 23:14:49 +08:00
|
|
|
|
2018-12-28 22:17:40 +08:00
|
|
|
|
2018-12-20 01:58:18 +08:00
|
|
|
|
|
|
|
# # remote desktop connection on init
|
|
|
|
# init:
|
|
|
|
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
|
|
|
|
|
|
|
# # remote desktop connection on finish and block build to not destroy VM
|
|
|
|
# on_finish:
|
|
|
|
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|