mirror of https://github.com/grpc/grpc.git
The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
https://grpc.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
2.1 KiB
54 lines
2.1 KiB
@rem Copyright 2017 gRPC authors. |
|
@rem |
|
@rem Licensed under the Apache License, Version 2.0 (the "License"); |
|
@rem you may not use this file except in compliance with the License. |
|
@rem You may obtain a copy of the License at |
|
@rem |
|
@rem http://www.apache.org/licenses/LICENSE-2.0 |
|
@rem |
|
@rem Unless required by applicable law or agreed to in writing, software |
|
@rem distributed under the License is distributed on an "AS IS" BASIS, |
|
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
@rem See the License for the specific language governing permissions and |
|
@rem limitations under the License. |
|
|
|
@rem make sure msys binaries are preferred over cygwin binaries |
|
@rem set path to python 2.7 |
|
@rem set path to CMake |
|
set PATH=C:\tools\msys64\usr\bin;C:\Python27;C:\Program Files\CMake\bin;%PATH% |
|
|
|
@rem If this is a PR using RUN_TESTS_FLAGS var, then add flags to filter tests |
|
if defined KOKORO_GITHUB_PULL_REQUEST_NUMBER if defined RUN_TESTS_FLAGS ( |
|
set RUN_TESTS_FLAGS=%RUN_TESTS_FLAGS% --filter_pr_tests --base_branch origin/%KOKORO_GITHUB_PULL_REQUEST_TARGET_BRANCH% |
|
) |
|
|
|
@rem Update DNS settings to: |
|
@rem 1. allow resolving metadata.google.internal hostname |
|
@rem 2. make fetching default GCE credential by oauth2client work |
|
netsh interface ip set dns "Local Area Connection 8" static 169.254.169.254 primary |
|
netsh interface ip add dnsservers "Local Area Connection 8" 8.8.8.8 index=2 |
|
netsh interface ip add dnsservers "Local Area Connection 8" 8.8.4.4 index=3 |
|
|
|
@rem Needed for big_query_utils |
|
python -m pip install google-api-python-client || goto :error |
|
|
|
@rem C# prerequisites: Install dotnet SDK |
|
powershell -File src\csharp\install_dotnet_sdk.ps1 || goto :error |
|
set PATH=%LOCALAPPDATA%\Microsoft\dotnet;%PATH% |
|
|
|
@rem Disable some unwanted dotnet options |
|
set NUGET_XMLDOC_MODE=skip |
|
set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true |
|
set DOTNET_CLI_TELEMETRY_OPTOUT=true |
|
|
|
@rem Only install Python interpreters if we are running Python tests |
|
If "%PREPARE_BUILD_INSTALL_DEPS_PYTHON%" == "true" ( |
|
powershell -File tools\internal_ci\helper_scripts\install_python_interpreters.ps1 || goto :error |
|
) |
|
|
|
git submodule update --init || goto :error |
|
|
|
goto :EOF |
|
|
|
:error |
|
exit /b 1
|
|
|