Skip to content

Commit 4a99ec8

Browse files
authored
Use compute engine to build coverage and app engine to publish the result (project-chip#24395)
1 parent db57c0b commit 4a99ec8

File tree

5 files changed

+46
-75
lines changed

5 files changed

+46
-75
lines changed

integrations/appengine/README.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
## Deploy Static Website on App Engine
2+
3+
### Setup google cloud integration
4+
5+
Follow https://cloud.google.com/sdk/docs/install.
6+
7+
### Build Coverage Report
8+
9+
To check out the Matter repository:
10+
11+
```
12+
git clone --recurse-submodules git@github.com:project-chip/connectedhomeip.git
13+
```
14+
15+
Run the following command to build coverage report:
16+
17+
```
18+
cd connectedhomeip
19+
./scripts/build_coverage.sh
20+
```
21+
22+
After a successful build, the coverage report is located at
23+
`out/coverage/coverage`
24+
25+
#### Upload your static website to Google App Engine
26+
27+
File `integrations/appengine/webapp_config.yaml` is used to configure the
28+
settings of your App Engine application.
29+
30+
Directory `out/coverage/coverage` contains the coverage report files, such as
31+
HTML, CSS, images, and JavaScript.
32+
33+
```
34+
cd out/coverage/coverage
35+
gcloud app deploy ../../../integrations/appengine/webapp_config.yaml
36+
```
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
runtime: python27
2+
api_version: 1
3+
threadsafe: true
4+
handlers:
5+
- url: /
6+
static_files: html/index.html
7+
upload: html/index.html
8+
- url: /(.*)
9+
static_files: html/\1
10+
upload: html/(.*)

integrations/cloudbuild/build-coverage-remote.yaml

-18
This file was deleted.

integrations/cloudbuild/build-coverage.yaml

-55
This file was deleted.

scripts/build_coverage.sh

-2
Original file line numberDiff line numberDiff line change
@@ -168,5 +168,3 @@ lcov --initial --capture --directory "$OUTPUT_ROOT/obj/src" --exclude="$PWD"/zzz
168168
lcov --capture --directory "$OUTPUT_ROOT/obj/src" --exclude="$PWD"/zzz_generated/* --exclude="$PWD"/third_party/* --exclude=/usr/include/* --output-file "$COVERAGE_ROOT/lcov_test.info"
169169
lcov --add-tracefile "$COVERAGE_ROOT/lcov_base.info" --add-tracefile "$COVERAGE_ROOT/lcov_test.info" --output-file "$COVERAGE_ROOT/lcov_final.info"
170170
genhtml "$COVERAGE_ROOT/lcov_final.info" --output-directory "$COVERAGE_ROOT/html"
171-
172-
tar czvf "$COVERAGE_ROOT/coverage_html.tar.gz" -C "$COVERAGE_ROOT/html" .

0 commit comments

Comments
 (0)