mirror of https://github.com/bazelbuild/rules_cc
Example config for using Bazel HEAD on CI
This commit is contained in:
parent
8e88d89faf
commit
6ecee7ec8f
|
@ -1,48 +1,37 @@
|
||||||
---
|
---
|
||||||
|
x_defaults:
|
||||||
|
# YAML has a feature for "repeated nodes", BazelCI is fine with extra nodes
|
||||||
|
# it doesn't know about; so that is used to avoid repeating common subparts.
|
||||||
|
common: &common
|
||||||
|
# We exclude //examples/... because it can only be built / tested with Bazel HEAD.
|
||||||
|
build_targets:
|
||||||
|
- "//..."
|
||||||
|
- "-//examples/..."
|
||||||
|
test_flags:
|
||||||
|
- "--test_timeout=300"
|
||||||
|
test_targets:
|
||||||
|
- "//..."
|
||||||
|
- "-//examples/..."
|
||||||
|
|
||||||
buildifier:
|
buildifier:
|
||||||
version: latest
|
version: latest
|
||||||
warnings: "all"
|
warnings: "all"
|
||||||
platforms:
|
|
||||||
|
tasks:
|
||||||
ubuntu1604:
|
ubuntu1604:
|
||||||
run_targets:
|
<<: *common
|
||||||
build_targets:
|
|
||||||
- "..."
|
|
||||||
test_flags:
|
|
||||||
- "--test_timeout=300"
|
|
||||||
test_targets:
|
|
||||||
- "..."
|
|
||||||
ubuntu1804:
|
ubuntu1804:
|
||||||
run_targets:
|
<<: *common
|
||||||
build_targets:
|
|
||||||
- "..."
|
|
||||||
test_flags:
|
|
||||||
- "--test_timeout=300"
|
|
||||||
test_targets:
|
|
||||||
- "..."
|
|
||||||
ubuntu1804_nojava:
|
|
||||||
run_targets:
|
|
||||||
build_flags:
|
|
||||||
- "--javabase=@openjdk11_linux_archive//:runtime"
|
|
||||||
build_targets:
|
|
||||||
- "..."
|
|
||||||
test_flags:
|
|
||||||
- "--test_timeout=300"
|
|
||||||
- "--javabase=@openjdk11_linux_archive//:runtime"
|
|
||||||
test_targets:
|
|
||||||
- "..."
|
|
||||||
macos:
|
macos:
|
||||||
run_targets:
|
<<: *common
|
||||||
build_targets:
|
|
||||||
- "..."
|
|
||||||
test_flags:
|
|
||||||
- "--test_timeout=300"
|
|
||||||
test_targets:
|
|
||||||
- "..."
|
|
||||||
windows:
|
windows:
|
||||||
run_targets:
|
<<: *common
|
||||||
|
examples:
|
||||||
|
platform: ubuntu1804
|
||||||
|
bazel: last_green
|
||||||
build_targets:
|
build_targets:
|
||||||
- "..."
|
- "//examples/..."
|
||||||
test_flags:
|
test_flags:
|
||||||
- "--test_timeout=300"
|
- "--test_timeout=300"
|
||||||
test_targets:
|
test_targets:
|
||||||
- "..."
|
- "//examples"
|
||||||
|
|
Loading…
Reference in New Issue