forked from KDE/atcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
104 lines (70 loc) · 2.89 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
version: '{branch}-{build}'
image: Visual Studio 2015
configuration: release
platform: x86
init:
- ps: >-
$env:commit = $env:appveyor_repo_commit.SubString(0,7)
Update-AppveyorBuild -Version ("{0}-{1}-{2}" -f $env:appveyor_repo_branch,$env:appveyor_build_number,$env:commit )
environment:
VSVER: 14.0
CMAKE_INSTALL_ROOT: C:\projects\cmake
matrix:
- MSVC: 15
RUNTIME_LINKAGE: static
QT_VERSION: 5.9
QT_LINKAGE: static
ICU_VERSION: 57.1
ICU_LINKAGE: static
COVERITY_BUILD_CANDIDATE: True
QTDIR: C:\Qt\5.8\msvc2015
ATCORE_LIBS: Qt5SerialPort.dll
install:
- cmd: >-
%QTDIR%\bin\qtenv2.bat
qmake -v
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
set QTBIN=%QTDIR%\bin
build_script:
- cmd: >-
mkdir %CMAKE_INSTALL_ROOT%
mkdir work
cinst ninja
cd work
git clone -q git://anongit.kde.org/extra-cmake-modules.git
cd extra-cmake-modules
cmake -G "Ninja" . -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_ROOT%
ninja install
cd %APPVEYOR_BUILD_FOLDER%
mkdir %APPVEYOR_BUILD_FOLDER%-build
cd %APPVEYOR_BUILD_FOLDER%-build
cmake %APPVEYOR_BUILD_FOLDER% -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_ROOT% -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_ROOT% -DBUILD_GUI=ON
cmake --build . --target ALL_BUILD --config %CONFIGURATION%
mkdir AtCore_Test_Client-%commit%-win32
mkdir AtCore_Test_Client-%commit%-win32\plugins
move %APPVEYOR_BUILD_FOLDER%-build\bin\%CONFIGURATION%\AtCore.dll AtCore_Test_Client-%commit%-win32\
move %APPVEYOR_BUILD_FOLDER%-build\bin\%CONFIGURATION%\AtCoreWidgets.dll AtCore_Test_Client-%commit%-win32\
move %APPVEYOR_BUILD_FOLDER%-build\bin\%CONFIGURATION%\atcore-gui.exe AtCore_Test_Client-%commit%-win32\
move %APPVEYOR_BUILD_FOLDER%-build\bin\%CONFIGURATION%\* AtCore_Test_Client-%commit%-win32\plugins\
windeployqt --compiler-runtime AtCore_Test_Client-%commit%-win32/atcore-gui.exe
for %%I in (%ATCORE_LIBS%) do copy %QTBIN%\%%I AtCore_Test_Client-%commit%-win32\
7z a -tzip AtCore_Test_Client-win.zip AtCore_Test_Client-%commit%-win32 -r
copy %APPVEYOR_BUILD_FOLDER%-build\AtCore_Test_Client-win.zip %APPVEYOR_BUILD_FOLDER%\AtCore_Test_Client-win.zip
artifacts:
- path: AtCore_Test_Client-win.zip
name: AtCore
deploy:
- provider: GitHub
tag: continuous
description: continuous
auth_token:
secure: yG66EEKasiTmuCDPStbz0nVsvcETsQlnpDD2ScfNWUwT81kKfALCVFRTPMrp6R6E
artifact: AtCore
force_update: true