2022-05-26 23:13:27 +00:00
|
|
|
# Copyright 2022 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.
|
|
|
|
|
|
|
|
from recipe_engine.post_process import Filter
|
|
|
|
|
|
|
|
PYTHON_VERSION_COMPATIBILITY = "PY3"
|
|
|
|
|
|
|
|
DEPS = [
|
|
|
|
"crosvm",
|
|
|
|
"recipe_engine/buildbucket",
|
|
|
|
"recipe_engine/context",
|
|
|
|
"recipe_engine/raw_io",
|
|
|
|
"recipe_engine/step",
|
|
|
|
"recipe_engine/path",
|
|
|
|
"recipe_engine/file",
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
def RunSteps(api):
|
2022-06-22 21:13:09 +00:00
|
|
|
with api.crosvm.source_context():
|
2022-05-26 23:13:27 +00:00
|
|
|
# Execute push in a bash script so there is no chance of leaking the github token via luci
|
|
|
|
# logs.
|
|
|
|
api.step("Pushing to github", ["bash", api.resource("push_to_github.sh")])
|
|
|
|
|
|
|
|
|
|
|
|
def GenTests(api):
|
|
|
|
yield (api.test("basic") + api.post_process(Filter("Pushing to github")))
|