Example config for using Bazel HEAD on CI

This commit is contained in:
Philipp Wollermann 2019-11-12 15:00:34 +01:00 committed by GitHub
parent 8e88d89faf
commit 6ecee7ec8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 36 deletions

View File

@ -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:
version: latest
warnings: "all"
platforms:
tasks:
ubuntu1604:
run_targets:
build_targets:
- "..."
test_flags:
- "--test_timeout=300"
test_targets:
- "..."
<<: *common
ubuntu1804:
run_targets:
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:
- "..."
<<: *common
macos:
run_targets:
build_targets:
- "..."
test_flags:
- "--test_timeout=300"
test_targets:
- "..."
<<: *common
windows:
run_targets:
<<: *common
examples:
platform: ubuntu1804
bazel: last_green
build_targets:
- "..."
- "//examples/..."
test_flags:
- "--test_timeout=300"
test_targets:
- "..."
- "//examples"