-
Notifications
You must be signed in to change notification settings - Fork 1
/
.appveyor.yml
executable file
·146 lines (134 loc) · 5.27 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# Galaxy Calculator appveyor configuration files
version: '{branch}-{build}'
os:
- Visual Studio 2015
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 )
image:
- Visual Studio 2015
environment:
VSVER: 14.0
matrix:
- MSVC_VERSION: 15
RUNTIME_LINKAGE: static
QT_VERSION: 5.13
QT_LINKAGE: static
COVERITY_BUILD_CANDIDATE: True
#https://www.appveyor.com/docs/build-environment/#qt
QTDIR: C:\Qt\5.13\msvc2015_64
QT_IF_VERSION: '3.0.1'
PRJLIBS: VCRUNTIME140.dll MSVCP140.dll
BIN: Galaxy-Calculator
MY_ENV: AppVeyor
QIF_PACKAGE_URI: 'packages\com.lightwizzard.galaxycalculator\data'
configuration:
- release
# - debug
#platform:
# - Win32
# - x64
install:
- echo install
# Set some vars
# C:\projects\galaxy-calculator
#- cmd: echo '%QTDIR%'
#- dir C:\Qt\5.12
# - dir 'C:\Program Files (x86)\Windows Kits\10\bin'
# 10.0.14393.0
# 10.0.15063.0
# 10.0.16299.0
# 10.0.17134.0
# 10.0.17763.0
# 10.0.18362.0
# arm
# arm64
#- dir "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN"
- echo Copy rc files
- xcopy /f "C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x86\rc.exe" "%ProgramFiles(x86)%\Microsoft Visual Studio %VSVER%\VC\BIN\"
- xcopy /f "C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x86\rcdll.dll" "%ProgramFiles(x86)%\Microsoft Visual Studio %VSVER%\VC\BIN\"
- xcopy /f "C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x86\rc.exe" "%ProgramFiles(x86)%\Microsoft Visual Studio %VSVER%\VC\BIN\amd64_x86"
- xcopy /f "C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x86\rcdll.dll" "%ProgramFiles(x86)%\Microsoft Visual Studio %VSVER%\VC\BIN\amd64_x86"
- xcopy /f "C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x86\rc.exe" "%ProgramFiles(x86)%\Microsoft Visual Studio %VSVER%\VC\BIN\amd64"
- xcopy /f "C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x86\rcdll.dll" "%ProgramFiles(x86)%\Microsoft Visual Studio %VSVER%\VC\BIN\amd64"
- '%QTDIR%\bin\qtenv2.bat'
- echo Qt Version
- 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%\VC\vcvarsall.bat" %ARCH%
- if not %QTDIR:msvc=%==%QTDIR% set make=nmake.exe
- if not %QTDIR:msvc=%==%QTDIR% %make% /? > nul
- echo QTDIR=%QTDIR%
#- dir %QTDIR%
#- dir %QTDIR%\bin
#- dir %QTDIR%\plugins
#- echo C:\Qt
#- dir C:\Qt
before_build:
# Prepare the out-of-source build directory.
- echo before_build ~ APPVEYOR_BUILD_FOLDER=%APPVEYOR_BUILD_FOLDER%
#- dir
- cd %APPVEYOR_BUILD_FOLDER%
- mkdir %APPVEYOR_BUILD_FOLDER%-build
#- dir %APPVEYOR_BUILD_FOLDER%
- qmake -o %APPVEYOR_BUILD_FOLDER%-build -r -Wall -Wlogic -Wparser CONFIG+=%CONFIGURATION% %APPVEYOR_BUILD_FOLDER%
#- dir %APPVEYOR_BUILD_FOLDER%-build
build_script:
# Compile it and check for .exe
- echo build_script
- cd %APPVEYOR_BUILD_FOLDER%-build
- '%make%'
- dir /b /s *.exe
- echo Current Path is %cd%
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.
- echo after_build
- dir
- 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\
- 7z a -tzip "%BIN%-%CONFIGURATION%.zip" deploy -r
- copy "%APPVEYOR_BUILD_FOLDER%-build\%BIN%-%CONFIGURATION%.zip" "%APPVEYOR_BUILD_FOLDER%\%BIN%-%CONFIGURATION%.zip"
- echo APPVEYOR_BUILD_FOLDER=%APPVEYOR_BUILD_FOLDER%
- xcopy /s /e /f "%APPVEYOR_BUILD_FOLDER%-build\deploy" "%APPVEYOR_BUILD_FOLDER%\%QIF_PACKAGE_URI%"
- C:\Qt\QtIFW-3.0.1\bin\binarycreator.exe --offline-only -c "%APPVEYOR_BUILD_FOLDER%\config\config.xml" -p "%APPVEYOR_BUILD_FOLDER%\packages" "%BIN%-Windows-Installer.exe"
- 7z a -tzip "%BIN%-Windows-Installer.zip" "%BIN%-Windows-Installer.exe"
- copy *.zip %APPVEYOR_BUILD_FOLDER%
- copy *.exe %APPVEYOR_BUILD_FOLDER%
- cd %APPVEYOR_BUILD_FOLDER%
- del %APPVEYOR_BUILD_FOLDER%\%BIN%.pro
- echo Current Path is %cd%
- dir
- echo Completed-Build
artifacts:
- path: '%BIN%*.zip'
name: 'ZipInstaller'
- path: '%BIN%*.exe'
name: 'ExecutableFile'
deploy:
- provider: GitHub
release: continuous
artifact: 'ZipInstaller'
draft: false
prerelease: true
auth_token:
secure: 5Kb03ANp7s6KeJKren+ROsEnuCk2tXGby36aqYpG0WV8xfHBg26Td9B4C9jpI/O/
- provider: GitHub
release: continuous
artifact: 'ExecutableFile'
draft: false
prerelease: true
auth_token:
secure: 5Kb03ANp7s6KeJKren+ROsEnuCk2tXGby36aqYpG0WV8xfHBg26Td9B4C9jpI/O/
############################################## End of File ####################