summary refs log tree commit diff
path: root/kokoro
diff options
context:
space:
mode:
authorStephen Barber <smbarber@chromium.org>2018-03-15 09:59:19 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-09-21 00:51:21 -0700
commit5abdc78c82cac432ec5b8f1a03c151260eafe89e (patch)
tree444b85615e693b9684913245fd79d542b9bbb8be /kokoro
parenta40cbb4a948ea826f69cb83728c31a5a253a3b1c (diff)
downloadcrosvm-5abdc78c82cac432ec5b8f1a03c151260eafe89e.tar
crosvm-5abdc78c82cac432ec5b8f1a03c151260eafe89e.tar.gz
crosvm-5abdc78c82cac432ec5b8f1a03c151260eafe89e.tar.bz2
crosvm-5abdc78c82cac432ec5b8f1a03c151260eafe89e.tar.lz
crosvm-5abdc78c82cac432ec5b8f1a03c151260eafe89e.tar.xz
crosvm-5abdc78c82cac432ec5b8f1a03c151260eafe89e.tar.zst
crosvm-5abdc78c82cac432ec5b8f1a03c151260eafe89e.zip
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 <smbarber@chromium.org>
Tested-by: Stephen Barber <smbarber@chromium.org>
Tested-by: Zach Reizner <zachr@chromium.org>
Reviewed-by: Zach Reizner <zachr@chromium.org>
Diffstat (limited to 'kokoro')
-rwxr-xr-xkokoro/build.sh19
-rw-r--r--kokoro/presubmit.cfg3
2 files changed, 22 insertions, 0 deletions
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"