forked from Rezonality/zep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
63 lines (51 loc) · 1.58 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
# Build worker image (VM template)
image: Visual Studio 2017
# scripts that are called at very beginning, before repo cloning
init:
- date /T & time /T
- git config --global core.autocrlf input
- cmake --version
branches:
only:
- master
clone_depth: 5
version: '{build}'
platform:
- x64
configuration:
- Release
#- Debug
environment:
MSBUILD_FLAGS: /verbosity:minimal /maxcpucount
matrix:
- generator: "Visual Studio 15 2017 Win64"
matrix:
fast_finish: true
install:
- git submodule update --init --recursive
build_script:
# generate build script
- cd %APPVEYOR_BUILD_FOLDER%
- dir
# create folder for an out-of-source-tree build: "c:\projects\build"
- cd..
- mkdir build
- cd build
- >
cmake %APPVEYOR_BUILD_FOLDER%
-G "%generator%"
-DCMAKE_INSTALL_PREFIX=./zep
- cmake --build . --target ALL_BUILD --config %configuration% -- /nologo /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
test_script:
- ps: |
cd $env:CONFIGURATION
.\unittests.exe --gtest_output=xml:unit_tests_report.xml
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path unit_tests_report.xml))
after_build:
# set compiler var
- if "%generator%"=="Visual Studio 14" (set COMPILER="VC14")
# switch to project build folder and zip "tutorials" folder
- cd C:\projects\build
- 7z a -tzip -mx9 "zep-%APPVEYOR_BUILD_VERSION%-%COMPILER%.zip" Release
- appveyor PushArtifact "zep-%APPVEYOR_BUILD_VERSION%-%COMPILER%.zip"