From 5c6157f67a033298555dedb52e3a82c8785159a4 Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Thu, 10 Feb 2022 17:52:35 -0800 Subject: [PATCH] ci: Remove kokoro config (#1029) We are now fully committed to GitHub Actions for CI, and all contributions will come through public PRs, and not through Google-internal channels. --- kokoro/deps_replacer.py | 29 ---------------------------- kokoro/windows/build.bat | 35 ---------------------------------- kokoro/windows/x64/debug.cfg | 11 ----------- kokoro/windows/x64/release.cfg | 11 ----------- kokoro/windows/x86/debug.cfg | 11 ----------- kokoro/windows/x86/release.cfg | 11 ----------- 6 files changed, 108 deletions(-) delete mode 100644 kokoro/deps_replacer.py delete mode 100644 kokoro/windows/build.bat delete mode 100644 kokoro/windows/x64/debug.cfg delete mode 100644 kokoro/windows/x64/release.cfg delete mode 100644 kokoro/windows/x86/debug.cfg delete mode 100644 kokoro/windows/x86/release.cfg diff --git a/kokoro/deps_replacer.py b/kokoro/deps_replacer.py deleted file mode 100644 index 92923b9265..0000000000 --- a/kokoro/deps_replacer.py +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 2017 Google Inc. All Rights Reserved. -"""This is a simple string replacer for DEPS file. - -This replaces all instances of search_text with replacement_text. - -Usage: - this_script.py search_text replacement_text -""" - -# This runs on a Windows kokoro host where we don't control the python version. -# Because this runs in python2, we can't specify an encoding in open(). -# pylint: disable=unspecified-encoding - -import os -import sys - -if len(sys.argv) != 3: - sys.exit(1) - -script_dir = os.path.dirname(os.path.realpath(__file__)) -deps_file = os.path.join(os.path.dirname(script_dir), 'DEPS') - -new_file_content = '' -with open(deps_file, 'r') as f: - for line in f: - new_file_content += line.replace(sys.argv[1], sys.argv[2]) - -with open(deps_file, 'w') as f: - f.write(new_file_content) diff --git a/kokoro/windows/build.bat b/kokoro/windows/build.bat deleted file mode 100644 index 39c5423c70..0000000000 --- a/kokoro/windows/build.bat +++ /dev/null @@ -1,35 +0,0 @@ -:: Copyright 2017 Google Inc. All Rights Reserved. -set ROOTDIR=%cd% -set PACKAGERDIR=%ROOTDIR%\git\src -set PATH=c:\Python35;%PATH% - -set GYP_DEFINES="target_arch=%PLATFORM%" -if "%PLATFORM%"=="x64" ( - set OUTPUT_DIRECTORY="out\%CONFIGURATION%_x64" -) else ( - set OUTPUT_DIRECTORY="out\%CONFIGURATION%" -) - -:: TODO(rkuroiwa): Put this in a batch script and source it, so that this -:: doesn't need to be copied for all configurations. -git clone "https://chromium.googlesource.com/chromium/tools/depot_tools.git" depot_tools -set DEPOTTOOLSDIR=%ROOTDIR%\depot_tools - -python %PACKAGERDIR%\kokoro\deps_replacer.py "https://github.com" "https://github.googlesource.com" - -cd %PACKAGERDIR%\.. - -:: Note that gclient file is a batch script, so 'call' must be used to wait for -:: the result. -:: Also gclient turns off echo, so echo is re-enabled after the command. -call %DEPOTTOOLSDIR%\gclient config "https://github.com/google/shaka-packager.git" --name=src --unmanaged -echo on -call %DEPOTTOOLSDIR%\gclient sync -echo on - -cd src -%DEPOTTOOLSDIR%\ninja -C "%OUTPUT_DIRECTORY%" -k 100 || exit /b 1 - -copy "%OUTPUT_DIRECTORY%\packager.exe" packager-win.exe -for %%f in ("%OUTPUT_DIRECTORY%\*_*test.exe") do (%%f || exit /b 666) -python "%OUTPUT_DIRECTORY%\packager_test.py" -v diff --git a/kokoro/windows/x64/debug.cfg b/kokoro/windows/x64/debug.cfg deleted file mode 100644 index beee9df83e..0000000000 --- a/kokoro/windows/x64/debug.cfg +++ /dev/null @@ -1,11 +0,0 @@ -build_file: "src/kokoro/windows/build.bat" - -env_vars { - key: "PLATFORM" - value: "x64" -} - -env_vars { - key: "CONFIGURATION" - value: "Debug" -} diff --git a/kokoro/windows/x64/release.cfg b/kokoro/windows/x64/release.cfg deleted file mode 100644 index 3ffd4ce7cf..0000000000 --- a/kokoro/windows/x64/release.cfg +++ /dev/null @@ -1,11 +0,0 @@ -build_file: "src/kokoro/windows/build.bat" - -env_vars { - key: "PLATFORM" - value: "x64" -} - -env_vars { - key: "CONFIGURATION" - value: "Release" -} diff --git a/kokoro/windows/x86/debug.cfg b/kokoro/windows/x86/debug.cfg deleted file mode 100644 index adc74547bb..0000000000 --- a/kokoro/windows/x86/debug.cfg +++ /dev/null @@ -1,11 +0,0 @@ -build_file: "src/kokoro/windows/build.bat" - -env_vars { - key: "PLATFORM" - value: "x86" -} - -env_vars { - key: "CONFIGURATION" - value: "Debug" -} diff --git a/kokoro/windows/x86/release.cfg b/kokoro/windows/x86/release.cfg deleted file mode 100644 index eaf691b252..0000000000 --- a/kokoro/windows/x86/release.cfg +++ /dev/null @@ -1,11 +0,0 @@ -build_file: "src/kokoro/windows/build.bat" - -env_vars { - key: "PLATFORM" - value: "x86" -} - -env_vars { - key: "CONFIGURATION" - value: "Release" -}