@@ -4,6 +4,7 @@ load("//:examples.bzl", "envoy_examples")
44
55licenses (["notice" ]) # Apache 2
66
7+ # Excluding build tests - eg wasm - these should be run directly
78EXAMPLE_TESTS = [
89 "brotli" ,
910 "cache" ,
@@ -40,7 +41,6 @@ EXAMPLE_TESTS = [
4041 "udp" ,
4142 "vrp-litmus" ,
4243 # "vrp-local",
43- # "wasm-cc",
4444 "websocket" ,
4545 "zipkin" ,
4646 "zstd" ,
@@ -66,7 +66,7 @@ filegroup(
6666 "postgres/*" ,
6767 "kafka/*.yaml" ,
6868 ],
69- ),
69+ ) + [ "@envoy-example-wasmcc//:configs" ] ,
7070 visibility = ["//visibility:public" ],
7171)
7272
@@ -95,7 +95,7 @@ filegroup(
9595
9696filegroup (
9797 name = "docs_rst" ,
98- srcs = glob (["**/example.rst" ]) + ["//wasm-cc :example.rst" ],
98+ srcs = glob (["**/example.rst" ]) + ["@envoy-example-wasmcc// :example.rst" ],
9999)
100100
101101pkg_files (
@@ -112,16 +112,20 @@ genrule(
112112 cmd = """
113113 TEMP=$$(mktemp -d)
114114 for location in $(locations :docs_rst); do
115- example=$$(echo $$location | sed -e 's#^external/[^/]*/##' | cut -d/ -f1)
116- cp -a $$location "$${TEMP}/$${example}.rst"
115+ if [[ "$$location" == *"/envoy-example"* ]]; then
116+ example="$$(echo "$$location" | cut -d- -f3- | cut -d/ -f1)"
117+ else
118+ example=$$(echo $$location | sed -e 's#^external/[^/]*/##' | cut -d/ -f1)
119+ fi
120+ cp -aL $$location "$${TEMP}/$${example}.rst"
117121 echo " $${example}" >> "$${TEMP}/_toctree.rst"
118122 done
119123 echo ".. toctree::" > "$${TEMP}/toctree.rst"
120124 echo " :maxdepth: 1" >> "$${TEMP}/toctree.rst"
121125 echo "" >> "$${TEMP}/toctree.rst"
122126 cat "$${TEMP}/_toctree.rst" | sort >> "$${TEMP}/toctree.rst"
123127 rm "$${TEMP}/_toctree.rst"
124- tar czf $@ -C $${TEMP} .
128+ tar chzf $@ -C $${TEMP} .
125129 """ ,
126130)
127131
@@ -134,32 +138,32 @@ filegroup(
134138filegroup (
135139 name = "files" ,
136140 srcs = glob (
137- [
138- "**/*" ,
139- ],
141+ ["**/*" ],
140142 exclude = [
141143 "**/*~" ,
142144 "**/.*" ,
143145 "**/#*" ,
144146 ".*/**/*" ,
145147 "BUILD" ,
146- ".git/**/*" ,
148+ "README.md" ,
149+ "WORKSPACE" ,
147150 "bazel-*/**/*" ,
148151 "**/node_modules/**" ,
149152 "**/*.rst" ,
150153 "win32*" ,
151154 ],
152- ) + [
153- "//wasm-cc:files" ,
154- ],
155+ ),
155156)
156157
157158pkg_tar (
158159 name = "docs" ,
159160 srcs = [":examples_files" ],
160161 extension = "tar.gz" ,
161162 package_dir = "start/sandboxes" ,
162- deps = [":examples_docs" ],
163+ deps = [
164+ ":examples_docs" ,
165+ "@envoy-example-wasmcc//:includes" ,
166+ ],
163167 visibility = ["//visibility:public" ],
164168)
165169
0 commit comments