blob: e449350221279907951027a3ed615837cb9344dd [file] [log] [blame]
---
matrix:
platform:
- ubuntu1804
- ubuntu2004
- macos
.incompatible_flags: &incompatible_flags
? "--config=incompatible"
.noenable_bzlmod_flags: &noenable_bzlmod_flags
? "--noenable_bzlmod"
.incompatible_noenable_bzlmod_flags: &incompatible_noenable_bzlmod_flags
? "--config=incompatible"
? "--noenable_bzlmod"
.windows_flags: &windows_flags
# Workaround for https://github.com/bazelbuild/continuous-integration/issues/1012
? "--noexperimental_repository_cache_hardlinks"
.common_task_config: &common_task_config
build_targets:
- "//..."
test_targets:
- "//..."
.incompatible_task_config: &incompatible_task_config
<<: *common_task_config
build_flags: *incompatible_flags
test_flags: *incompatible_flags
.noenable_bzlmod_task_config: &noenable_bzlmod_task_config
build_flags: *noenable_bzlmod_flags
build_targets:
# Note that //distro/... cannot be loaded in legacy WORKSPACE mode due to repo name change
- "//:*"
- "//src/..."
- "//stardoc/..."
- "//test/..."
test_flags: *noenable_bzlmod_flags
test_targets:
# Most tests will not pass in legacy WORKSPACE mode due to repo name change
- "//test:multiple_files_noenable_bzlmod_test"
- "//test:same_level_file_noenable_bzlmod_test"
- "//test:table_of_contents_noenable_bzlmod_test"
- "//test:local_repository_test"
.incompatible_noenable_bzlmod_task_config: &incompatible_noenable_bzlmod_task_config
<<: *noenable_bzlmod_task_config
build_flags: *incompatible_noenable_bzlmod_flags
test_flags: *incompatible_noenable_bzlmod_flags
.windows_task_config: &windows_task_config
<<: *common_task_config
build_flags: *windows_flags
test_flags: *windows_flags
tasks:
build_and_test:
<<: *common_task_config
name: Build and test
platform: ${{ platform }}
build_and_test_incompatible:
<<: *incompatible_task_config
name: Build and test - incompatible flags
platform: ${{ platform }}
build_and_test_windows:
<<: *windows_task_config
name: Build and test - Windows
platform: windows
noenable_bzlmod:
<<: *noenable_bzlmod_task_config
name: Build and test - legacy WORKSPACE setup
platform: ${{ platform }}
incompatible_noenable_bzlmod:
<<: *incompatible_noenable_bzlmod_task_config
name: Build and test - legacy WORKSPACE setup with incompatible flags
platform: ${{ platform }}
build_and_test_last_green:
<<: *common_task_config
name: Build and test - Bazel last green
platform: ${{ platform }}
bazel: last_green
build_and_test_last_green_windows:
<<: *windows_task_config
name: Build and test - Bazel last green - Windows
platform: windows
bazel: last_green
bzlmod_usage:
<<: *common_task_config
name: Stardoc Bzlmod module usage test
platform: ${{ platform }}
working_directory: test/bzlmod
bzlmod_usage_incompatible:
<<: *incompatible_task_config
name: Stardoc Bzlmod module usage test - incompatible flags
platform: ${{ platform }}
working_directory: test/bzlmod
bzlmod_usage_windows:
<<: *windows_task_config
name: Stardoc Bzlmod module usage test - Windows
platform: windows
working_directory: test/bzlmod
bazel_7_2_tests:
name: Stardoc golden tests requiring Bazel 7.2
platform: ubuntu2004
bazel: 7.2.0
test_targets:
- "//test:proto_format_test"
- "//test:macro_kwargs_legacy_test"
bazel_8_tests:
name: Stardoc golden tests requiring Bazel HEAD
platform: ubuntu2004
bazel: last_green
test_targets:
- "//test:macro_kwargs_test"
buildifier: latest