From 5abdc78c82cac432ec5b8f1a03c151260eafe89e Mon Sep 17 00:00:00 2001 From: Stephen Barber Date: Thu, 15 Mar 2018 09:59:19 -0700 Subject: kokoro: add initial presubmit script and config BUG=b:73822503 TEST=run kokoro presubmit Change-Id: Id128de2300a76f8a359521c83b371e9b743bc71b Reviewed-on: https://chromium-review.googlesource.com/964601 Commit-Ready: Stephen Barber Tested-by: Stephen Barber Tested-by: Zach Reizner Reviewed-by: Zach Reizner --- kokoro/build.sh | 19 +++++++++++++++++++ kokoro/presubmit.cfg | 3 +++ 2 files changed, 22 insertions(+) create mode 100755 kokoro/build.sh create mode 100644 kokoro/presubmit.cfg (limited to 'kokoro') diff --git a/kokoro/build.sh b/kokoro/build.sh new file mode 100755 index 0000000..1d0acb9 --- /dev/null +++ b/kokoro/build.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# Copyright 2018 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 -ex + +main() { + if [ -z "${KOKORO_ARTIFACTS_DIR}" ]; then + echo "This script must be run in kokoro" + exit 1 + fi + + local src_root="${KOKORO_ARTIFACTS_DIR}"/git/crosvm + + return 0 +} + +main "$@" diff --git a/kokoro/presubmit.cfg b/kokoro/presubmit.cfg new file mode 100644 index 0000000..4f52557 --- /dev/null +++ b/kokoro/presubmit.cfg @@ -0,0 +1,3 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "crosvm/kokoro/build.sh" -- cgit 1.4.1