blob: 49a5cfb4b94ba25cf93145e4d43b6dea92c40e68 (
plain)
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
|
# version format
version: '{branch}-{build}'
# branches to build
branches:
only:
- master
# only build commits with a particular message
only_commits:
message: /build-appveyor/
author: aqua@iserlohn-fortress.net
# --- environment configuration ---
image: Visual Studio 2017
# scripts that are called at very beginning, before repo cloning
init:
- git config --global core.autocrlf input
# We use commit count as a version, so we can't do a shallow clone
#shallow_clone: true
clone_folder: C:\projects\smolbote.git
environment:
source_dir: C:\projects\smolbote.git
install_dir: C:\projects\smolbote.install
matrix:
- arch: x64
compiler: msvc2017
generator: '"Visual Studio 15 2017 Win64"'
# --- build ---
# script to run after repository is cloned
install:
- cmd: if %arch%==x86 (set QT_ROOT=C:\Qt\5.11\%compiler%) else (set QT_ROOT=C:\Qt\5.11\%compiler%_64)
- cmd: set BOOST_ROOT=C:\Libraries\boost_1_67_0
- cmd: cd %source_dir%
- cmd: git submodule init
- cmd: git submodule update 3rd-party/SingleApplication/SingleApplication.git
# build script
build_script:
- cmd: echo Building on %arch% with %compiler%
- cmd: cmake -G %generator% -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%install_dir% -DCMAKE_PREFIX_PATH=%QT_ROOT%;%BOOST_ROOT% -DBoost_USE_STATIC_LIBS=On %source_dir%
- cmd: cmake --build . --target poi --config Release
- cmd: cmake --build . --target install --config Release
- cmd: cd %install_dir%
- cmd: call %QT_ROOT%\bin\windeployqt.exe bin\poi.exe
- cmd: 7z a %source_dir%\build.7z %install_dir%
artifacts:
- path: build.7z
name: release
# --- notifications ---
notifications:
- provider: Email
to:
- aqua@iserlohn-fortress.net
subject: 'smolbote: build {{status}}'
message: 'version {{branch}}:{{commitId}}\n
Artifacts: {{#artifacts}}
- {{name}} {{permalink}} \n
{{/artifacts}}'
on_build_status_changed: true
|