2023-06-09 10:29:12 +00:00
|
|
|
load("@rules_python//python/pip_install:requirements.bzl", "compile_pip_requirements")
|
|
|
|
|
2021-01-25 19:07:05 +00:00
|
|
|
# TODO: This should not be necessary but there appears to be some inconsistent
|
|
|
|
# behavior with the use of `constraint_value`s in `select` statements. A support
|
|
|
|
# thread was started at the end of https://github.com/bazelbuild/bazel/pull/12071
|
|
|
|
# Once it is possible to replace `:windows` with `@platforms//os:windows` that
|
|
|
|
# should be done for this file. Note actioning on this will set the minimum
|
|
|
|
# supported version of Bazel to 4.0.0 for these examples.
|
|
|
|
config_setting(
|
|
|
|
name = "windows",
|
|
|
|
constraint_values = ["@platforms//os:windows"],
|
2021-02-26 20:21:13 +00:00
|
|
|
visibility = ["//visibility:public"],
|
2021-01-25 19:07:05 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
config_setting(
|
|
|
|
name = "macos",
|
|
|
|
constraint_values = ["@platforms//os:macos"],
|
2021-02-26 20:21:13 +00:00
|
|
|
visibility = ["//visibility:public"],
|
2018-12-04 17:54:21 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
test_suite(
|
2021-02-26 20:21:13 +00:00
|
|
|
name = "third_party_examples_linux_tests",
|
|
|
|
tags = ["manual"],
|
|
|
|
tests = ["@rules_foreign_cc_examples_third_party//:linux_tests"],
|
2018-09-14 13:37:00 +00:00
|
|
|
)
|
|
|
|
|
2021-03-28 21:01:15 +00:00
|
|
|
test_suite(
|
|
|
|
name = "third_party_examples_linux_rbe_tests",
|
|
|
|
tags = ["manual"],
|
|
|
|
tests = ["@rules_foreign_cc_examples_third_party//:linux_rbe_tests"],
|
|
|
|
)
|
|
|
|
|
2018-09-14 13:37:00 +00:00
|
|
|
test_suite(
|
2021-02-26 20:21:13 +00:00
|
|
|
name = "third_party_examples_macos_tests",
|
|
|
|
tags = ["manual"],
|
|
|
|
tests = ["@rules_foreign_cc_examples_third_party//:macos_tests"],
|
2018-09-11 11:07:11 +00:00
|
|
|
)
|
|
|
|
|
2021-01-25 21:42:14 +00:00
|
|
|
test_suite(
|
2021-02-26 20:21:13 +00:00
|
|
|
name = "third_party_examples_windows_tests",
|
|
|
|
tags = ["manual"],
|
|
|
|
tests = ["@rules_foreign_cc_examples_third_party//:windows_tests"],
|
2019-01-08 11:25:16 +00:00
|
|
|
)
|
2023-06-09 10:29:12 +00:00
|
|
|
|
|
|
|
compile_pip_requirements(
|
|
|
|
name = "requirements",
|
|
|
|
requirements_in = "requirements.txt",
|
|
|
|
requirements_txt = "requirements_lock.txt",
|
|
|
|
)
|