-
Notifications
You must be signed in to change notification settings - Fork 8
/
appveyor.yml
84 lines (64 loc) · 2.45 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
# Notes:
# - Minimal appveyor.yml file is an empty file. All sections are optional.
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
# - Section names should be unique on each level.
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
# version must contains build number to make sure that all commits are processed by appveyor.
# If build number is not part of the version than appveyor build fails with the following message: "Build version x.y.z already exists."
version: "{branch} (#{build})"
# branches to build
branches:
only:
- master
# Do not build on tags (GitHub and BitBucket)
skip_tags: true
#---------------------------------#
# environment configuration #
#---------------------------------#
# Build worker image (VM template)
image: Visual Studio 2015
# scripts that are called at very beginning, before repo cloning
init:
- cmd: git config --global core.autocrlf true
- ps: $env:GIT_HASH=$env:APPVEYOR_REPO_COMMIT.Substring(0, 10)
# clone directory
clone_folder: c:\projects\bin2cpp
# scripts that run after cloning repository
install:
- cmd: echo INSTALL!
- cmd: git submodule update --init --recursive
#---------------------------------#
# build configuration #
#---------------------------------#
environment:
PlatformToolset: v140
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
Platform: x64
# build Configuration, i.e. Debug, Release, etc.
Configuration: Release
# to add several configurations to build matrix:
#Configuration:
# - Debug
# - Release
before_build:
- cmd: call %APPVEYOR_BUILD_FOLDER%\ci\appveyor\install_googletest.bat
- cmd: call %APPVEYOR_BUILD_FOLDER%\ci\appveyor\install_rapidassist.bat
build_script:
- cmd: call %APPVEYOR_BUILD_FOLDER%\ci\appveyor\install_bin2cpp.bat
#---------------------------------#
# tests configuration #
#---------------------------------#
# to run your custom scripts instead of automatic tests
test_script:
- cmd: call %APPVEYOR_BUILD_FOLDER%\ci\appveyor\test_script.bat
- ps: . "$env:APPVEYOR_BUILD_FOLDER\ci\appveyor\UploadJUnitFiles.ps1" -Path "$env:APPVEYOR_BUILD_FOLDER\build\bin"
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
- path: .\build\bin\Release\bin2cpp_unittest.*.release.xml
- path: .\build\bin2cpp-*-win*.*