aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Tattermusch <jtattermusch@google.com>2019-03-12 04:48:10 -0400
committerJan Tattermusch <jtattermusch@google.com>2019-03-12 05:16:52 -0400
commit67fee07308283b89adbae5628c3f6391defbd8a2 (patch)
tree47ee9357a42e50cd57c508e34040c8fa769d20b1
parent753daae02725ec73615fb33003c79395f70aa7ff (diff)
downloadprotobuf-67fee07308283b89adbae5628c3f6391defbd8a2.tar.gz
C#: set some dotnet options when testing
-rw-r--r--kokoro/release/csharp/windows/build_nuget.bat4
-rw-r--r--kokoro/windows/csharp/build.bat4
-rwxr-xr-xtests.sh6
3 files changed, 14 insertions, 0 deletions
diff --git a/kokoro/release/csharp/windows/build_nuget.bat b/kokoro/release/csharp/windows/build_nuget.bat
index fdb02b068..0ff8db042 100644
--- a/kokoro/release/csharp/windows/build_nuget.bat
+++ b/kokoro/release/csharp/windows/build_nuget.bat
@@ -7,4 +7,8 @@ cd csharp
powershell -File install_dotnet_sdk.ps1
set PATH=%LOCALAPPDATA%\Microsoft\dotnet;%PATH%
+@rem Disable some unwanted dotnet options
+set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
+set DOTNET_CLI_TELEMETRY_OPTOUT=true
+
call build_packages.bat
diff --git a/kokoro/windows/csharp/build.bat b/kokoro/windows/csharp/build.bat
index 94d0906cc..95224f2eb 100644
--- a/kokoro/windows/csharp/build.bat
+++ b/kokoro/windows/csharp/build.bat
@@ -7,4 +7,8 @@ cd csharp
powershell -File install_dotnet_sdk.ps1
set PATH=%LOCALAPPDATA%\Microsoft\dotnet;%PATH%
+@rem Disable some unwanted dotnet options
+set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
+set DOTNET_CLI_TELEMETRY_OPTOUT=true
+
call buildall.bat
diff --git a/tests.sh b/tests.sh
index 09edfbfb1..6bfd1a848 100755
--- a/tests.sh
+++ b/tests.sh
@@ -117,6 +117,12 @@ build_csharp() {
internal_build_cpp
NUGET=/usr/local/bin/nuget.exe
+ # Disable some unwanted dotnet options
+ export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
+ export DOTNET_CLI_TELEMETRY_OPTOUT=true
+
+ # TODO(jtattermusch): is this still needed with "first time experience"
+ # disabled?
# Perform "dotnet new" once to get the setup preprocessing out of the
# way. That spews a lot of output (including backspaces) into logs
# otherwise, and can cause problems. It doesn't matter if this step