2
0
Fork 0
mirror of https://github.com/bazelbuild/rules_cc synced 2024-11-25 17:31:30 +00:00
rules_cc/.bazelci/presubmit.yml
Googler c2b692b4e4 Adds integration test for cc_shared_library.
We use BUILD example added in previous CL and inspect the resulting *.so files with nm.

Also fixes implementation of shared library to work with Bazel after having flipped the legacy whole archive flag. This caused exported libraries to be dropped by the linker unless they were alwayslink.

Still more tests to come.

RELNOTES:none
PiperOrigin-RevId: 280640226
Change-Id: I34b48ce7379536352f87b703580083eb85ca67b3
2019-11-15 05:36:47 -08:00

61 lines
1.6 KiB
YAML

---
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 have to list every package because even with exclusion notation -//foo
# Bazel will load the excluded package and it will be an error because at
# release Bazel the cc_libraries do not have all the attributes.
build_targets:
- "//:all"
- "//cc:all"
- "//cc/private/rules_impl:all"
- "//cc/private/toolchain:all"
- "//distro:all"
- "//examples:all"
- "//examples/my_c_archive:all"
- "//examples/my_c_compile:all"
- "//examples/write_cc_toolchain_cpu:all"
- "//tools/migration:all"
- "//tools/runfiles:all"
test_flags:
- "--test_timeout=120"
test_targets:
- "//:all"
- "//cc:all"
- "//cc/private/rules_impl:all"
- "//cc/private/toolchain:all"
- "//distro:all"
- "//examples:all"
- "//examples/my_c_archive:all"
- "//examples/my_c_compile:all"
- "//examples/write_cc_toolchain_cpu:all"
- "//tools/migration:all"
- "//tools/runfiles:all"
buildifier:
version: latest
warnings: "all"
tasks:
ubuntu1604:
<<: *common
ubuntu1804:
<<: *common
macos:
<<: *common
windows:
<<: *common
examples:
platform: ubuntu1804
bazel: last_green
build_targets:
- "//examples/test_cc_shared_library/..."
build_flags:
- "--experimental_cc_shared_library"
test_flags:
- "--test_timeout=120"
- "--experimental_cc_shared_library"
test_targets:
- "//examples/test_cc_shared_library/..."