IPC.Bond/appveyor.yml

57 строки
1.6 KiB
YAML
Исходник Обычный вид История

2017-07-02 05:57:53 +03:00
version: 1.0.{build}
2020-02-09 13:12:04 +03:00
image: Visual Studio 2019
2017-07-02 05:57:53 +03:00
cache:
- IPC\packages -> **\packages.config
2020-02-10 06:24:04 +03:00
# 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 ..
2017-07-02 05:57:53 +03:00
platform:
- x64
configuration:
- Debug
- Release
environment:
BUILD_PATH: $(platform)\$(configuration)
install:
2020-02-10 06:24:04 +03:00
- nuget restore IPC.Bond.sln
2017-07-02 05:57:53 +03:00
matrix:
fast_finish: true
before_build:
- bond.cmd %configuration% "C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
2020-02-10 07:53:50 +03:00
- msbuild IPC\IPC.sln /m /t:Transport /p:Configuration=%configuration% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
2017-07-02 05:57:53 +03:00
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