forked from karorogunso/audio-router
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
99 lines (77 loc) · 2.85 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
95
96
97
98
99
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 1.0.{build}
# you can use {branch} name in version format too
# version: 1.0.{build}-{branch}
# branches to build
branches:
only:
- master
# Maximum number of concurrent jobs for the project
max_jobs: 1
#---------------------------------#
# environment configuration #
#---------------------------------#
# Build worker image (VM template)
image: Visual Studio 2019
# clone directory
clone_folder: c:\audiorouter
# set clone depth
clone_depth: 1 # clone entire repository history if not defined
clone_script:
- cmd: git clone -q --recursive --branch=%APPVEYOR_REPO_BRANCH% https://github.com/%APPVEYOR_REPO_NAME%.git %APPVEYOR_BUILD_FOLDER%
- cmd: git checkout -qf %APPVEYOR_REPO_COMMIT%
# environment variables
environment:
INSTALL_DIR: c:\projects\kod\kod
# matrix:
# - GENERATOR: "Visual Studio 12 2013 Win64"
# BUILD_PLATFORM: windows64_vs12
# OPENCV_VERSION: 2.4.13
# - GENERATOR: "Visual Studio 14 2015 Win64"
# BUILD_PLATFORM: windows64_vs14
# OPENCV_VERSION: 3.1.0.20160701
# Automatically register private account and/or project AppVeyor NuGet feeds.
nuget:
account_feed: true
project_feed: true
disable_publish_on_pr: true # disable publishing of .nupkg artifacts to
# account/project feeds for pull request builds
#---------------------------------#
# build configuration #
#---------------------------------#
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform:
- x64
# build Configuration, i.e. Debug, Release, etc.
configuration:
- Release
# scripts that run after cloning repository
install:
# - cmd: choco install OpenCV -y -version %OPENCV_VERSION%
build:
# project: audio-router.sln
# verbosity: minimal
build_script:
# - IF EXIST c:\tools\opencv* CD c:\tools\opencv*
# - SET OPENCV_DIR=%CD%\build
- echo Running cmake...
- cd c:\audiorouter
- set /p BUILD_VERSION=< VERSION
- echo %BUILD_VERSION%
- appveyor UpdateBuild -Version "%BUILD_VERSION%-%APPVEYOR_BUILD_NUMBER%"
# - cmake -G "%GENERATOR%" -DCMAKE_INSTALL_PREFIX=%INSTALL_DIR% -DBUILD_CLIENT=ON -DBUILD_OPENCV=ON -DOpenCV_DIR=%OPENCV_DIR% -DBUILD_PLATFORM=%BUILD_PLATFORM% .
- msbuild audio-router.sln /p:Configuration=Debug /fileloggerparameters:Verbosity=minimal"
- msbuild audio-router.sln /p:Configuration=Release /fileloggerparameters:Verbosity=minimal"
after_build:
- 7z a Audio-Router-v%APPVEYOR_BUILD_VERSION%.zip %APPVEYOR_BUILD_FOLDER%\bin\Release\*.exe %APPVEYOR_BUILD_FOLDER%\bin\Release\*.dll
test: off
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
# pushing a single file
- path: Audio-Router-*.zip
name: Audio Router