mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
9740b944eb
The script broke after the formatter wrapped the string. BUG=None TEST=./ci/kokoro/simulate.py build-merge-into-chromeos.sh Change-Id: Id6e972d786d5a58f6cbb43f80d02f0aa26483967 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3585858 Reviewed-by: Anton Romanov <romanton@google.com> Tested-by: Dennis Kempin <denniskempin@google.com>
32 lines
850 B
Bash
Executable file
32 lines
850 B
Bash
Executable file
#!/bin/bash
|
|
# Copyright 2021 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
set -e
|
|
|
|
# Python script to check for at least version 3.9
|
|
VERSION_CHECK="
|
|
import sys
|
|
sys.exit(sys.version_info.major != 3 or sys.version_info.minor < 9)
|
|
"
|
|
|
|
main() {
|
|
cd "${KOKORO_ARTIFACTS_DIR}/git/crosvm"
|
|
|
|
# Ensure we have at least python 3.9. Kokoro does not and requires us to use pyenv to install
|
|
# The required version.
|
|
if ! python -c "$VERSION_CHECK"; then
|
|
pyenv install -v 3.9.5
|
|
pyenv global 3.9.5
|
|
fi
|
|
|
|
# Extra packages required by merge_bot
|
|
if ! pip show argh; then
|
|
pip install argh
|
|
fi
|
|
|
|
./tools/chromeos/merge_bot -v update-merges --is-bot
|
|
./tools/chromeos/merge_bot -v update-dry-runs --is-bot
|
|
}
|
|
|
|
main
|