Add continous testing configuration and script
- Initial script and config for windows x64. - Add script that replaces strings in DEPS, so that it can point to a mirror if needed. Change-Id: Ib94a5902dba91fe521517b01aaa439c16cccebf9
This commit is contained in:
parent
81a1497893
commit
d675c42bf2
|
@ -0,0 +1,25 @@
|
|||
# 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
|
||||
"""
|
||||
|
||||
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)
|
|
@ -0,0 +1,17 @@
|
|||
:: Copyright 2017 Google Inc. All Rights Reserved.
|
||||
set OUTPUT_DIRECTORY=Release_x64
|
||||
set GYP_DEFINES=target_arch=x64
|
||||
|
||||
:: 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\
|
||||
cd ..
|
||||
python src\kokoro\deps_replacer.py "github.com" "github.googlesource.com"
|
||||
depot_tools\gclient config https://github.com/google/shaka-packager.git --name=src --unmanaged
|
||||
depot_tools\gclient sync
|
||||
cd src
|
||||
..\depot_tools\ninja -C "out\%OUTPUT_DIRECTORY%" -k 100
|
||||
|
||||
copy "out\%OUTPUT_DIRECTORY%\packager.exe" packager-win.exe
|
||||
for %%f in ("out\%OUTPUT_DIRECTORY%\*_*test.exe") do (%%f || exit /b 666)
|
||||
python "out\%OUTPUT_DIRECTORY%\packager_test.py" -v
|
|
@ -0,0 +1 @@
|
|||
build_file: "continuous.bat"
|
Loading…
Reference in New Issue