/
.appveyor.yml
95 lines (74 loc) · 2.66 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
# AppVeyor CI Build.
# HOME path: ~
# Git clone path: c:\Project\tbag
# Reference: https://www.appveyor.com/docs/appveyor-yml/
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 1.0.{build}
# branches to build
branches:
# whitelist
only:
- master
# blacklist
except:
- gh-pages
# Do not build on tags (GitHub and BitBucket)
skip_tags: true
#---------------------------------#
# environment configuration #
#---------------------------------#
# Build worker image (VM template)
image: Visual Studio 2017
# scripts that are called at very beginning, before repo cloning
init:
- git config --global core.autocrlf input
# clone directory
clone_folder: c:\Project\tbag
# environment variables
environment:
APPVEYOR_SAVE_CACHE_ON_ERROR: true
TBAG_HOME: c:\Project\tbag
TBAG_BUILD: c:\Project\tbag\build
BUILD_TARGET: tester # 'tbag' or 'tester'
# build cache to preserve files/folders between builds
cache:
- "%TBAG_BUILD%\\external"
#---------------------------------#
# build configuration #
#---------------------------------#
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform: x64
# build Configuration, i.e. Debug, Release, etc.
configuration: Debug
# scripts to run before build
before_build:
- cmd: echo Running before build...
- cmd: if not exist "%TBAG_BUILD%" mkdir "%TBAG_BUILD%"
- cmd: cd "%TBAG_BUILD%"
- cmd: if "%platform%" == "Win32" cmake -G "Visual Studio 15 2017" -DCMAKE_BUILD_TYPE=Debug -DRUN_APPVEYOR=ON "%TBAG_HOME%"
- cmd: if "%platform%" == "x64" cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=Debug -DRUN_APPVEYOR=ON "%TBAG_HOME%"
# to run your custom scripts instead of automatic MSBuild
build_script:
- cmd: echo Running build...
- cmd: cd "%TBAG_BUILD%"
- cmd: cmake --build . --target external -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- cmd: cmake --build . --target tbag -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- cmd: cmake --build . --target tester -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
#---------------------------------#
# tests configuration #
#---------------------------------#
# to run your custom scripts instead of automatic tests
test_script:
- cmd: echo Running test...
- cmd: cd "%TBAG_BUILD%\\Debug"
- cmd: if "%BUILD_TARGET%" == "tester" tester.exe
#---------------------------------#
# notifications #
#---------------------------------#
notifications:
- provider: Email
to:
- osom8979@gmail.com