-
Notifications
You must be signed in to change notification settings - Fork 25
/
appveyor.yml
78 lines (57 loc) · 1.79 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
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 1.0.{build}
# branches to build
branches:
only:
- master
#---------------------------------#
# environment configuration #
#---------------------------------#
# Build worker image (VM template)
image:
- Visual Studio 2019
# scripts that are called at very beginning, before repo cloning
init:
- git config --global core.autocrlf input
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# clone directory
clone_folder: C:\projects\Inline-Engine
# this is how to allow failing jobs in the matrix
matrix:
fast_finish: true
#---------------------------------#
# build configuration #
#---------------------------------#
# to add several platforms to build matrix:
platform:
- x64
# to add several configurations to build matrix:
configuration:
- Debug
- RelWithDebInfo
build:
parallel: true
project: C:\projects\Inline-Engine\build\Inline-Engine.sln
verbosity: minimal
# scripts to run before build
before_build:
- cmd: |-
git submodule update --init --recursive
mkdir build
cd build
cmake --version
cmake .. -G "Visual Studio 16 2019" -DCMAKE_SYSTEM_VERSION=10.0
#---------------------------------#
# testing #
#---------------------------------#
# run tests
test_script:
- ps : |-
mkdir test_results
cd test_results
iex "C:\projects\Inline-Engine\build\Bin\$env:CONFIGURATION\Test_Unit.exe --reporter junit --out test.xml"
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\test.xml))