aboutsummaryrefslogtreecommitdiff
path: root/kokoro
diff options
context:
space:
mode:
authorAlex Humesky <ahumesky@google.com>2022-01-18 14:00:45 -0800
committerCopybara-Service <copybara-worker@google.com>2022-01-18 14:01:09 -0800
commite559df834d012bd3b5cb839f5d653971fe7b5a87 (patch)
tree5f26d20c6cb1c4c0a85748c73087f19b89d5cfcd /kokoro
parent934502082e25c8c3f6873035b87a30cb8fb5193a (diff)
downloadbazelbuild-rules_android-e559df834d012bd3b5cb839f5d653971fe7b5a87.tar.gz
Add stub presubmit script for Kokoro.
PiperOrigin-RevId: 422641960 Change-Id: Ie98faa9166554a665c4d3f08dadc42c9a2e71712
Diffstat (limited to 'kokoro')
-rw-r--r--kokoro/presubmit/kokoro_presubmit.sh17
-rw-r--r--kokoro/presubmit/presubmit.cfg16
2 files changed, 33 insertions, 0 deletions
diff --git a/kokoro/presubmit/kokoro_presubmit.sh b/kokoro/presubmit/kokoro_presubmit.sh
new file mode 100644
index 0000000..ce4008d
--- /dev/null
+++ b/kokoro/presubmit/kokoro_presubmit.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+# Copyright 2021 The Bazel Authors. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# TODO(ahumesky): Fill in test
+exit 0
diff --git a/kokoro/presubmit/presubmit.cfg b/kokoro/presubmit/presubmit.cfg
new file mode 100644
index 0000000..7536277
--- /dev/null
+++ b/kokoro/presubmit/presubmit.cfg
@@ -0,0 +1,16 @@
+
+# The version of bazel to use to test the Starlark Android Rules.
+# Update this as newer versions of bazel are released.
+build_params {
+ key: "bazel_version"
+ value: "4.0.0"
+}
+
+env_vars {
+ key: "bazel_version"
+ value: "$[bazel_version]"
+}
+
+gfile_resources: "/x20/teams/bazel/releases/bazel-$[bazel_version]-linux-x86_64"
+
+build_file: "rules_android/kokoro/presubmit/kokoro_presubmit.sh" \ No newline at end of file