bazel-skylib/.bazelci/presubmit.yml

95 lines
2.1 KiB
YAML
Raw Normal View History

---
.reusable_config: &reusable_config
build_targets:
- "--"
- "//..."
- "@bazel_skylib_gazelle_plugin//..."
test_targets:
- "--"
- "//..."
- "@bazel_skylib_gazelle_plugin//..."
tasks:
ubuntu1804_latest:
<<: *reusable_config
name: "Latest Bazel"
platform: ubuntu1804
bazel: latest
test_flags:
- "--test_env=PATH"
ubuntu1604_latest:
<<: *reusable_config
name: "Latest Bazel"
platform: ubuntu1604
bazel: latest
test_flags:
- "--test_env=PATH"
macos_latest:
<<: *reusable_config
name: "Latest Bazel"
platform: macos
bazel: latest
test_flags:
- "--test_env=PATH"
windows_latest:
<<: *reusable_config
name: "Latest Bazel"
platform: windows
bazel: latest
test_flags:
# TODO(laszlocsomor): remove "--test_env=LOCALAPPDATA" after
# https://github.com/bazelbuild/bazel/issues/7761 is fixed
- "--test_env=LOCALAPPDATA"
- "--test_tag_filters=-no_windows"
ubuntu1804_last_green:
<<: *reusable_config
name: "Last Green Bazel"
platform: ubuntu1804
bazel: last_green
test_flags:
- "--test_env=PATH"
ubuntu1604_last_green:
<<: *reusable_config
name: "Last Green Bazel"
platform: ubuntu1604
bazel: last_green
test_flags:
- "--test_env=PATH"
macos_last_green:
<<: *reusable_config
name: "Last Green Bazel"
platform: macos
bazel: last_green
test_flags:
- "--test_env=PATH"
windows_last_green:
<<: *reusable_config
name: "Last Green Bazel"
platform: windows
bazel: last_green
test_flags:
# TODO(laszlocsomor): remove "--test_env=LOCALAPPDATA" after
# https://github.com/bazelbuild/bazel/issues/7761 is fixed
- "--test_env=LOCALAPPDATA"
- "--test_tag_filters=-no_windows"
ubuntu1804_last_green_bzlmod:
<<: *reusable_config
name: "Last Green Bazel (with bzlmod)"
platform: ubuntu1804
bazel: last_green
build_flags:
- "--experimental_enable_bzlmod"
test_flags:
- "--experimental_enable_bzlmod"
- "--test_env=PATH"
buildifier: latest