зеркало из https://github.com/microsoft/IPC.Bond.git
Adding CI for Windows (#7)
This commit is contained in:
Родитель
b946027cc1
Коммит
c0a2a15de0
|
@ -0,0 +1,42 @@
|
|||
version: 1.0.{build}
|
||||
|
||||
image: Visual Studio 2015
|
||||
|
||||
cache:
|
||||
- IPC\packages -> **\packages.config
|
||||
|
||||
platform:
|
||||
- x64
|
||||
|
||||
configuration:
|
||||
- Debug
|
||||
- Release
|
||||
|
||||
environment:
|
||||
BUILD_PATH: $(platform)\$(configuration)
|
||||
|
||||
install:
|
||||
- git submodule update --init
|
||||
- cd bond
|
||||
- git submodule update --init thirdparty\rapidjson
|
||||
- cd ..
|
||||
|
||||
matrix:
|
||||
fast_finish: true
|
||||
|
||||
before_build:
|
||||
- nuget restore IPC.Bond.sln
|
||||
- bond.cmd %configuration% "C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
||||
- msbuild IPC\IPC.sln /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
|
5
bond.cmd
5
bond.cmd
|
@ -1,6 +1,7 @@
|
|||
@setlocal
|
||||
|
||||
@if "%1"=="" (set config=Debug) else (set config=%1)
|
||||
@if "%~2"=="" (set cmake_args=) else (set cmake_args=-- /logger:%2)
|
||||
|
||||
@set PreferredToolArchitecture=x64
|
||||
@set BOOST_ROOT=%CD%\IPC\packages\boost.1.63.0.0\lib\native\include
|
||||
|
@ -11,8 +12,8 @@
|
|||
@pushd bond\build
|
||||
|
||||
@cmake -G "Visual Studio 14 2015 Win64" -DBOND_LIBRARIES_ONLY=ON -DBOND_ENABLE_COMM=FALSE -DBOND_ENABLE_GRPC=FALSE -DCMAKE_INSTALL_PREFIX=%CD%\target\%config% ..
|
||||
@cmake --build . --config %config% --target
|
||||
@cmake --build . --config %config% --target INSTALL
|
||||
@cmake --build . --config %config% --target %cmake_args%
|
||||
@cmake --build . --config %config% --target INSTALL %cmake_args%
|
||||
|
||||
@popd
|
||||
@endlocal
|
||||
|
|
Загрузка…
Ссылка в новой задаче