Skip to content

Commit 74c7681

Browse files
devversionandrewseguin
authored andcommitted
build: do not run docs-package targets on circle (#14706)
* No longer runs expensive `docs-package` Bazel targets as part of the `bazel_build_test` job. These docs-package targets will be built as part of the `publish_snapshots` job where we build the docs-package and push it to the Github `material2-docs-content` repository.
1 parent 3c81b0e commit 74c7681

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
- *restore_cache
111111
- *copy_bazel_config
112112

113-
- run: bazel build src/...
113+
- run: bazel build src/... --build_tag_filters=-docs-package
114114
- run: bazel test src/...
115115

116116
# Note: We want to save the cache in this job because the workspace cache also

src/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ dgeni_api_docs(
3131
"cdk": CDK_PACKAGES,
3232
"material": MATERIAL_PACKAGES,
3333
},
34+
tags = ["docs-package"],
3435
)

src/material-examples/BUILD.bazel

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ ng_module(
2424

2525
filegroup(
2626
name = "example-source-files",
27-
srcs = glob(["*/*.html", "*/*.css", "*/*.ts"])
27+
srcs = glob(["*/*.html", "*/*.css", "*/*.ts"]),
2828
)
2929

3030
highlight_files(
3131
name = "highlighted-source-files",
32-
srcs = [":example-source-files"]
32+
srcs = [":example-source-files"],
33+
tags = ["docs-package"],
3334
)
3435

3536
package_docs_content(
@@ -53,7 +54,8 @@ package_docs_content(
5354

5455
# Package the API docs for the Material and CDK package into the docs-content
5556
"//src:api-docs": "api-docs",
56-
}
57+
},
58+
tags = ["docs-package"],
5759
)
5860

5961
ng_package(
@@ -63,8 +65,7 @@ ng_package(
6365
globals = ROLLUP_GLOBALS,
6466
deps = [":examples"],
6567
data = [":docs-content"],
66-
# TODO(devversion): re-enable once we have set up the proper compiler for the ng_package
67-
tags = ["manual"],
68+
tags = ["docs-package"],
6869
)
6970

7071
genrule(

0 commit comments

Comments
 (0)