forked from microsoft/IPC.Bond
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
56 lines (44 loc) · 1.63 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
version: 1.0.{build}
image: Visual Studio 2019
cache:
- IPC\packages -> **\packages.config
# Use custom 'clone_script' instead of 'install' in order to run it before the cache from submodule is restored.
clone_script:
- ps: >-
if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER) {
git clone -q --branch=$env:APPVEYOR_REPO_BRANCH https://github.com/$env:APPVEYOR_REPO_NAME.git $env:APPVEYOR_BUILD_FOLDER
cd $env:APPVEYOR_BUILD_FOLDER
git checkout -qf $env:APPVEYOR_REPO_COMMIT
} else {
git clone -q https://github.com/$env:APPVEYOR_REPO_NAME.git $env:APPVEYOR_BUILD_FOLDER
cd $env:APPVEYOR_BUILD_FOLDER
git fetch -q origin +refs/pull/$env:APPVEYOR_PULL_REQUEST_NUMBER/merge:
git checkout -qf FETCH_HEAD
}
- git submodule update --init
- cd bond
- git submodule update --init thirdparty\rapidjson
- cd ..
platform:
- x64
configuration:
- Debug
- Release
environment:
BUILD_PATH: $(platform)\$(configuration)
install:
- nuget restore IPC.Bond.sln
matrix:
fast_finish: true
before_build:
- bond.cmd %configuration% "C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- msbuild IPC\IPC.sln /m /t:Transport /p:Configuration=%configuration% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
build:
project: IPC.Bond.sln
test:
assemblies:
- $(BUILD_PATH)\IPC.Bond.Managed.UnitTests.dll
test_script:
- cd %BUILD_PATH%
- IPC.Bond.UnitTests.exe --detect_memory_leaks=0 --log_level=test_suite
- nunit3-console --framework=net-4.5 --labels=All IPC.Bond.Managed.UnitTests.dll --result=IPC.Bond.Managed.UnitTests.xml;format=AppVeyor