Skip to content

Commit db14152

Browse files
xingao267acmcarther
authored andcommitted
Add CI config to test on RBE. (#111)
* Add CI config to test on RBE. * Skip tests that are failing on RBE. Also use latest release of bazel-toolchains.
1 parent 1944c8a commit db14152

2 files changed

Lines changed: 29 additions & 1 deletion

File tree

.bazelci/presubmit.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,21 @@ platforms:
2323
- "-@examples//ffi/rust_calling_c:matrix_dylib_test"
2424
- "-@examples//ffi/rust_calling_c:matrix_dynamically_linked"
2525
build_targets: *targets
26-
test_targets: *targets
26+
test_targets: *targets
27+
rbe_ubuntu1604:
28+
test_targets:
29+
- "--"
30+
- "//test/..."
31+
- "@examples//..."
32+
- "-//test/conflicting_deps:conflicting_deps_test"
33+
- "-@examples//hello_runfiles:hello_runfiles_test"
34+
- "-@examples//ffi/c_calling_rust:main"
35+
- "-@examples//ffi/rust_calling_c:matrix_dylib_test"
36+
- "-@examples//ffi/rust_calling_c:matrix_test"
37+
- "-@examples//fibonacci:fibonacci_doc_test"
38+
- "-@examples//fibonacci:fibonacci_test"
39+
- "-@examples//hello_lib:greeting_test"
40+
- "-@examples//hello_lib:hello_lib_doc_test"
41+
- "-@examples//hello_lib:hello_lib_test"
42+
- "-@examples//hello_world:hello_world_doc_test"
43+
- "-@examples//hello_out_dir:hello_out_dir_test"

WORKSPACE

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ load(
55
"git_repository",
66
"new_git_repository",
77
)
8+
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
89

910
local_repository(
1011
name = "examples",
@@ -48,3 +49,13 @@ git_repository(
4849
load("@io_bazel_skydoc//skylark:skylark.bzl", "skydoc_repositories")
4950

5051
skydoc_repositories()
52+
53+
http_archive(
54+
name = "bazel_toolchains",
55+
sha256 = "c3b08805602cd1d2b67ebe96407c1e8c6ed3d4ce55236ae2efe2f1948f38168d",
56+
strip_prefix = "bazel-toolchains-5124557861ebf4c0b67f98180bff1f8551e0b421",
57+
urls = [
58+
"https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/5124557861ebf4c0b67f98180bff1f8551e0b421.tar.gz",
59+
"https://github.com/bazelbuild/bazel-toolchains/archive/5124557861ebf4c0b67f98180bff1f8551e0b421.tar.gz",
60+
],
61+
)

0 commit comments

Comments
 (0)