rules_foreign_cc/.bazelci/config.yaml

258 lines
8.1 KiB
YAML
Raw Normal View History

2018-04-26 17:52:06 +00:00
---
tasks:
ubuntu2004:
platform: ubuntu2004
build_targets:
- "//..."
test_targets:
- "//..."
2023-12-21 11:15:44 +00:00
rbe_ubuntu2004:
platform: rbe_ubuntu2004
build_targets:
- "//..."
test_targets:
- "//..."
macos:
platform: macos
build_targets:
- "//..."
test_targets:
- "//..."
windows:
platform: windows
build_targets:
- "//..."
test_targets:
- "//..."
2021-02-04 18:42:02 +00:00
# TODO: https://github.com/bazelbuild/rules_foreign_cc/issues/495
- "-//test:shell_method_symlink_contents_to_dir_test"
- "-//test:shell_script_inner_fun_test"
2023-12-20 11:10:45 +00:00
build_flags:
- "--noenable_bzlmod"
- "--enable_workspace"
2023-12-20 11:10:45 +00:00
test_flags:
- "--noenable_bzlmod"
- "--enable_workspace"
ubuntu1804_examples_standalone:
name: Examples (spawn_strategy=standalone)
platform: ubuntu1804
working_directory: examples
linux_targets: &linux_targets_standalone
- "//..."
- "//:third_party_examples_linux_tests"
build_targets: *linux_targets_standalone
build_flags:
- "-c"
- "dbg"
- "--spawn_strategy=standalone"
2023-12-20 11:10:45 +00:00
- "--noenable_bzlmod"
- "--enable_workspace"
test_targets: *linux_targets_standalone
test_flags:
- "-c"
- "dbg"
- "--spawn_strategy=standalone"
2023-12-20 11:10:45 +00:00
- "--noenable_bzlmod"
- "--enable_workspace"
ubuntu2004_examples:
name: Examples
platform: ubuntu2004
working_directory: examples
2021-03-15 16:59:17 +00:00
linux_targets: &linux_targets
- "//..."
- "//:third_party_examples_linux_tests"
2021-03-15 16:59:17 +00:00
build_targets: *linux_targets
test_targets: *linux_targets
2023-12-20 11:10:45 +00:00
build_flags:
- "--noenable_bzlmod"
- "--enable_workspace"
2023-12-20 11:10:45 +00:00
test_flags:
- "--noenable_bzlmod"
- "--enable_workspace"
ubuntu2004_examples_bzlmod:
name: Examples (bzlmod)
platform: ubuntu2004
working_directory: examples
linux_targets: &linux_targets_bzlmod
- "//..."
- "//:third_party_examples_linux_tests"
# gives error '//external:databinding_annotation_processor': target 'databinding_annotation_processor' not declared in package 'external' defined by /workdir/examples/WORKSPACE.bazel (Tip: use `query "//external:*"` to see all the targets in that package) and referenced by '@bazel_tools//tools/android:databinding_annotation_processor'
- "-//cmake_android/..."
build_targets: *linux_targets_bzlmod
test_targets: *linux_targets_bzlmod
build_flags:
- "--enable_bzlmod"
2023-12-21 11:15:44 +00:00
rbe_ubuntu2004_examples:
name: Examples
2023-12-21 11:15:44 +00:00
platform: rbe_ubuntu2004
working_directory: examples
rbe_targets: &rbe_targets
- "//..."
- "//:third_party_examples_linux_rbe_tests"
# Gives error: zipalign: error while loading shared libraries: /usr/local/lib/libc++.so: file too short
- "-//cmake_android/..."
2023-12-20 11:10:45 +00:00
# Python requirements not supported on Ubuntu 16.04
- "-//:requirements_test"
build_targets: *rbe_targets
test_targets: *rbe_targets
macos_examples_standalone:
name: Examples (spawn_strategy=standalone)
platform: macos
working_directory: examples
macos_targets: &macos_targets_standalone
- "//..."
- "//:third_party_examples_macos_tests"
- "-//cmake_android/..."
# Remove tests that depend on shared libraries, which currently doesn't work on MacOS - https://github.com/bazelbuild/bazel/issues/10254
- "-@rules_foreign_cc_examples_third_party//curl:curl_test"
- "-@rules_foreign_cc_examples_third_party//openssl:openssl_test"
build_targets: *macos_targets_standalone
build_flags:
- "-c"
- "dbg"
- "--spawn_strategy=standalone"
- "--noincompatible_enable_cc_toolchain_resolution"
- "--noenable_bzlmod"
- "--enable_workspace"
test_targets: *macos_targets_standalone
test_flags:
- "-c"
- "dbg"
- "--spawn_strategy=standalone"
- "--noincompatible_enable_cc_toolchain_resolution"
- "--noenable_bzlmod"
- "--enable_workspace"
macos_examples:
name: Examples
platform: macos
working_directory: examples
2021-03-15 16:59:17 +00:00
macos_targets: &macos_targets
- "//..."
- "//:third_party_examples_macos_tests"
- "-//cmake_android/..."
# Remove tests that depend on shared libraries, which currently doesn't work on MacOS - https://github.com/bazelbuild/bazel/issues/10254
- "-@rules_foreign_cc_examples_third_party//curl:curl_test"
- "-@rules_foreign_cc_examples_third_party//openssl:openssl_test"
2021-03-15 16:59:17 +00:00
build_targets: *macos_targets
build_flags:
- "--noincompatible_enable_cc_toolchain_resolution"
- "--noenable_bzlmod"
- "--enable_workspace"
2021-03-15 16:59:17 +00:00
test_targets: *macos_targets
test_flags:
- "--noincompatible_enable_cc_toolchain_resolution"
- "--noenable_bzlmod"
- "--enable_workspace"
windows_examples:
name: Examples
platform: windows
working_directory: examples
windows_targets: &windows_targets
- "//..."
- "//:third_party_examples_windows_tests"
# TODO: Support all targets on windows
- "-//cmake_android/..."
# TODO: Fix `error C2118: negative subscript`
- "-//cmake_defines/..."
# TODO: Fix linker error
- "-//cmake_synthetic/..."
# TODO: Fix `error LNK2019: unresolved external symbol hello_func`
- "-//cmake_hello_world_lib/shared/..."
# TODO: Fix `CreateProcess failed: The system cannot find the file specified.`
- "-//ninja_simple/..."
# TODO: The use of Visual Studio generator targets are broken. These should
# be re-enabled pending a resolution to
# https://github.com/bazelbuild/continuous-integration/issues/1204
- "-//cmake_hello_world_lib/static:libhello"
- "-//cmake_hello_world_lib/static:libhello_example"
- "-//cmake_hello_world_lib/static:test_hello"
- "-//cmake_with_data/..."
batch_commands:
- powershell -noexit "& "".\..\.bazelci\windows-update-certs.ps1"""
build_targets: *windows_targets
test_targets: *windows_targets
2023-12-20 11:10:45 +00:00
build_flags:
- "--noenable_bzlmod"
- "--enable_workspace"
2023-12-20 11:10:45 +00:00
test_flags:
- "--noenable_bzlmod"
- "--enable_workspace"
2023-12-21 11:15:44 +00:00
rbe_ubuntu2004_flags:
name: Flags
2023-12-21 11:15:44 +00:00
platform: rbe_ubuntu2004
working_directory: test/standard_cxx_flags_test
test_targets:
- "//:flags_test"
ubuntu2004_flags:
name: Flags
platform: ubuntu2004
working_directory: test/standard_cxx_flags_test
test_targets:
- "//:flags_test"
macos_flags:
name: Flags
platform: macos
working_directory: test/standard_cxx_flags_test
test_targets:
- "//:flags_test"
windows_flags:
name: Flags
platform: windows
working_directory: test/standard_cxx_flags_test
test_targets:
- "//:flags_test"
2023-12-21 11:15:44 +00:00
rbe_ubuntu2004_detect_root:
name: Detect root
2023-12-21 11:15:44 +00:00
platform: rbe_ubuntu2004
working_directory: test/detect_root_test
test_targets:
- "//:tests"
ubuntu2004_detect_root:
name: Detect root
platform: ubuntu2004
working_directory: test/detect_root_test
test_targets:
- "//:tests"
macos_detect_root:
name: Detect root
platform: macos
working_directory: test/detect_root_test
test_targets:
- "//:tests"
windows_detect_root:
name: Detect root
platform: windows
working_directory: test/detect_root_test
test_targets:
- "//:tests"
docs_linux:
name: Docs
platform: ubuntu2004
working_directory: docs
build_targets:
- //...
min_supported_version:
name: "Minimum Supported Version"
2023-12-20 11:10:45 +00:00
bazel: "5.4.0"
skip_in_bazel_downstream_pipeline: "Duplicates tests in other targets"
platform: ubuntu1804
build_targets:
- "//..."
test_targets:
- "//..."
min_supported_version_examples:
name: "Minimum Supported Version Examples"
2023-10-14 15:10:57 +00:00
bazel: "5.4.0"
skip_in_bazel_downstream_pipeline: "Duplicates tests in other targets"
platform: ubuntu1804
working_directory: examples
2021-03-15 16:59:17 +00:00
min_supported_targets: &min_supported_targets
- "//..."
2021-03-15 16:59:17 +00:00
build_targets: *min_supported_targets
test_targets: *min_supported_targets
buildifier:
2023-04-12 08:29:29 +00:00
version: "6.1.0"
# keep this argument in sync with .pre-commit-config.yaml
warnings: "all"