-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
58 lines (47 loc) · 2.51 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
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%\ndir .\npwd\nmkdir work\ncinst ninja\ncd work\ngit clone -q git://anongit.kde.org/extra-cmake-modules.git\ncd extra-cmake-modules\ncmake -G\"Ninja\" . -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_ROOT% \nninja install\ncd ../..\ndir .\ncd %APPVEYOR_BUILD_FOLDER%\ndir .\nmkdir %APPVEYOR_BUILD_FOLDER%-build\ndir .\ncd %APPVEYOR_BUILD_FOLDER%-build\ndir .\ncmake %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\ncmake --build . --target ALL_BUILD --config %CONFIGURATION%\ndir .\ntree\ndir /b /s *.exe\ndir /b /s aprinter.dll\ndir /b /s *.dll\ndir /b /s *.exe\nmkdir deploy\ncopy %APPVEYOR_BUILD_FOLDER%-build\\bin\\%CONFIGURATION%\\* deploy\\*\ndir .\ndir deploy\nwindeployqt --compiler-runtime deploy/atcore-gui.exe\nfor %%I in (%ATCORE_LIBS%) do copy %QTBIN%\\%%I deploy\\\ndir .\ndir deploy\ntree\n7z a -tzip AtCore_Test_Client-win.zip deploy -r\ncopy %APPVEYOR_BUILD_FOLDER%-build\\AtCore_Test_Client-win.zip %APPVEYOR_BUILD_FOLDER%\\AtCore_Test_Client-win.zip\ndir /b /s *.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