diff options
author | Jan Tattermusch <jtattermusch@google.com> | 2015-07-15 21:21:59 -0700 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2015-07-15 23:34:19 -0700 |
commit | d4794c56b5aa26bb2765d48aa03978d6bb521a50 (patch) | |
tree | 28321c45c2c40e6b5ba2bf8f21a4bc8e6905dce0 /appveyor.bat | |
parent | 19cf9d1e0044e18067ac4f444e3d91a5d939e84e (diff) | |
download | protobuf-d4794c56b5aa26bb2765d48aa03978d6bb521a50.tar.gz protobuf-d4794c56b5aa26bb2765d48aa03978d6bb521a50.tar.bz2 protobuf-d4794c56b5aa26bb2765d48aa03978d6bb521a50.zip |
add C# build and tests to appveyor
Diffstat (limited to 'appveyor.bat')
-rw-r--r-- | appveyor.bat | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/appveyor.bat b/appveyor.bat new file mode 100644 index 00000000..c50616f3 --- /dev/null +++ b/appveyor.bat @@ -0,0 +1,29 @@ +setlocal + +IF %language%==cpp GOTO build_cpp +IF %language%==csharp GOTO build_csharp + +echo Unsupported language %language%. Exiting. +goto :error + +:build_cpp +echo Building C++ +mkdir build_msvc +cd build_msvc +cmake -G "%generator%" -DBUILD_SHARED_LIBS=%BUILD_DLL% ../cmake +msbuild protobuf.sln /p:Platform=%vcplatform% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" || goto error +cd %configuration% +tests.exe || goto error +goto :EOF + +:build_csharp +echo Building C# +cd csharp\src +nuget restore +msbuild ProtocolBuffers.sln /p:Platform="Any CPU" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" || goto error +nunit-console ProtocolBuffers.Test\bin\%configuration%\Google.Protobuf.Test.dll || goto error +goto :EOF + +:error +echo Failed! +EXIT /b %ERRORLEVEL%
\ No newline at end of file |