-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathBUILD.bazel
95 lines (83 loc) · 2.6 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
load(
"@cgrindel_bazel_starlib//bzlformat:defs.bzl",
"bzlformat_missing_pkgs",
"bzlformat_pkg",
)
load("@cgrindel_bazel_starlib//bzltidy:defs.bzl", "tidy", "tidy_all")
load("@cgrindel_bazel_starlib//markdown:defs.bzl", "markdown_pkg")
load(
"@cgrindel_bazel_starlib//updatesrc:defs.bzl",
"updatesrc_update_all",
)
load(
"@rules_bazel_integration_test//bazel_integration_test:defs.bzl",
"integration_test_utils",
)
markdown_pkg(name = "markdown")
bzlformat_pkg(name = "bzlformat")
bzlformat_missing_pkgs(
name = "bzlformat_missing_pkgs",
)
tidy_all(name = "tidy_all")
tidy(
name = "tidy",
targets = [
# Remove the child workspace symlinks before doing some of the other
# operations that my experience infinite symlink expansion errors.
"@rules_bazel_integration_test//tools:remove_child_wksp_bazel_symlinks",
"@rules_bazel_integration_test//tools:update_deleted_packages",
":bzlformat_missing_pkgs_fix",
":update_all",
],
)
updatesrc_update_all(
name = "update_all",
targets_to_run = [
"@rules_bazel_integration_test//tools:update_deleted_packages",
":bzlformat_missing_pkgs_fix",
],
)
alias(
name = "update_files",
actual = ":update_all",
)
# MARK: - Related to Integration Tests
# Provides the *.bazlerc files for the example workspace integration tests.
filegroup(
name = "shared_bazelrc_files",
srcs = glob(["*.bazelrc"]),
visibility = ["//:__subpackages__"],
)
# Provides the *.bazlerc files for the example workspace integration tests.
filegroup(
name = "all_files",
srcs = glob(["*"]),
visibility = ["//:__subpackages__"],
)
# This target collects all of the parent workspace files needed by the child workspaces.
filegroup(
name = "local_repository_files",
# Include every package that is required by the child workspaces.
srcs = [
":all_files",
":shared_bazelrc_files",
"//bazel_integration_test:all_files",
"//bazel_integration_test/bzlmod:all_files",
"//bazel_integration_test/private:all_files",
"//tools:all_files",
],
visibility = ["//:__subpackages__"],
)
test_suite(
name = "all_integration_tests",
tags = integration_test_utils.DEFAULT_INTEGRATION_TEST_TAGS,
tests = [
"//examples:integration_tests",
"//examples/env_var_with_rootpath:integration_tests",
"//release:archive_test",
"//tests/e2e_tests:integration_tests",
"//tests/params_tests:integration_tests",
"//tests/py_tests:integration_tests",
],
visibility = ["//:__subpackages__"],
)