Explorar o código

add scripts for C# windows tests

Jan Tattermusch %!s(int64=6) %!d(string=hai) anos
pai
achega
79c32b17ac
Modificáronse 3 ficheiros con 28 adicións e 0 borrados
  1. 13 0
      csharp/buildall.bat
  2. 10 0
      kokoro/windows/csharp/build.bat
  3. 5 0
      kokoro/windows/csharp/continuous.cfg

+ 13 - 0
csharp/buildall.bat

@@ -0,0 +1,13 @@
+@rem Builds Google.Protobuf and runs the tests
+
+dotnet build src/Google.Protobuf.sln || goto :error
+
+echo Running tests.
+
+dotnet test -f netcoreapp1.0 src/Google.Protobuf.Test/Google.Protobuf.Test.csproj || goto :error
+
+goto :EOF
+
+:error
+echo Failed!
+exit /b %errorlevel%

+ 10 - 0
kokoro/windows/csharp/build.bat

@@ -0,0 +1,10 @@
+@rem enter repo root
+cd /d %~dp0\..\..\..
+
+cd csharp
+
+@rem Install dotnet SDK
+powershell -File install_dotnet_sdk.ps1
+set PATH=%LOCALAPPDATA%\Microsoft\dotnet;%PATH%
+
+call buildall.bat

+ 5 - 0
kokoro/windows/csharp/continuous.cfg

@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/windows/csharp/build.bat"
+timeout_mins: 1440