-
Notifications
You must be signed in to change notification settings - Fork 1
/
.appveyor.yml
82 lines (71 loc) · 2.74 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: '{branch}-{build}'
branches:
only:
- master
init:
# Create our AppVeyor version
- ps: $env:commit = $env:appveyor_repo_commit.SubString(0,7)
- ps: Update-AppveyorBuild -Version ("{0}-{1}-{2}" -f $env:appveyor_repo_branch,$env:appveyor_build_number,$env:commit )
environment:
VSVER: 2017
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
MSVC_VERSION: 17
RUNTIME_LINKAGE: static
QT_VERSION: 5.12.5
QT_LINKAGE: static
COVERITY_BUILD_CANDIDATE: True
#https://www.appveyor.com/docs/build-environment/#qt
QTDIR: C:\Qt\5.12.5\msvc2017_64
PRJLIBS: VCRUNTIME140.dll MSVCP140.dll
QML_PLUGINS: QtQml QtQuick QtQuick.2 QtMultimedia QtGraphicalEffects QtWebEngine
configuration:
- release
- debug
install:
# Set some vars
- '%QTDIR%\bin\qtenv2.bat'
- qmake -v
- set PRJLIBDIR=%WINDIR%\SysWOW64 # Find vclibs
- set QTDIR
- if %QTDIR:_64=%==%QTDIR% ( set ARCH=x86 ) else set ARCH=x64
- if %QTDIR:msvc=%==%QTDIR% g++ --version
- if %QTDIR:msvc=%==%QTDIR% set make=mingw32-make.exe
- if %QTDIR:msvc=%==%QTDIR% %make% --version
- if not %QTDIR:msvc=%==%QTDIR% call "%ProgramFiles(x86)%\Microsoft Visual Studio\%VSVER%\Community\VC\Auxiliary\Build\vcvarsall.bat" %ARCH%
- if not %QTDIR:msvc=%==%QTDIR% set make=nmake.exe
- if not %QTDIR:msvc=%==%QTDIR% %make% /? > nul
- set BIN=qml-browser
before_build:
# Prepare the out-of-source build directory.
- cd %APPVEYOR_BUILD_FOLDER%
- mkdir %APPVEYOR_BUILD_FOLDER%-build
- qmake -o %APPVEYOR_BUILD_FOLDER%-build -r -Wall -Wlogic -Wparser CONFIG+=%CONFIGURATION% %APPVEYOR_BUILD_FOLDER%
build_script:
# Compile it and check for .exe
- cd %APPVEYOR_BUILD_FOLDER%-build
- '%make%'
- dir /b /s *.exe
after_build:
# Add a link to the build output within the source directory. This is needed because AppVeyor does
# not support extracting artifacts from out-of-source build directories. See 'artifacts' below.
- dir /b /s *.exe
- mkdir deploy
- copy %APPVEYOR_BUILD_FOLDER%-build\%CONFIGURATION%\%BIN%.exe deploy\%BIN%.exe
- windeployqt --qmldir %APPVEYOR_BUILD_FOLDER%/qml --%CONFIGURATION% deploy/%BIN%.exe --verbose=2
- for %%I in (%PRJLIBS%) do copy %PRJLIBDIR%\%%I deploy\
- for %%I in (%QML_PLUGINS%) do xcopy /E /I /Y "%QTDIR%\qml\%%I" deploy\%%I
- 7z a -tzip %BIN%_%CONFIGURATION%.zip deploy -r
- copy %APPVEYOR_BUILD_FOLDER%-build\%BIN%_%CONFIGURATION%.zip %APPVEYOR_BUILD_FOLDER%\%BIN%_%CONFIGURATION%.zip
- dir /b /s *.zip
artifacts:
- path: '%BIN%_%CONFIGURATION%.zip'
name: '%BIN%'
deploy:
- provider: GitHub
release: continuous
artifact: '%BIN%'
draft: false
prerelease: true
auth_token:
secure: ug9glRaJ9gHQBVIfkT4TdE7bBd9Ff1QhWsce3oebN54o4BUaK0NLDQEqjpZvkvIn