-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add couldbuild build config file for code coverage (#23578)
- Loading branch information
1 parent
4483c0f
commit 2827568
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
steps: | ||
- name: gcr.io/cloud-builders/git | ||
args: | ||
- submodule | ||
- update | ||
- "--init" | ||
- "--recursive" | ||
id: Submodules | ||
|
||
- name: "connectedhomeip/chip-build-vscode:0.6.06" | ||
env: | ||
- PW_ENVIRONMENT_ROOT=/pwenv | ||
args: | ||
- "-c" | ||
- source ./scripts/bootstrap.sh | ||
id: Bootstrap | ||
waitFor: | ||
- Submodules | ||
entrypoint: /usr/bin/bash | ||
volumes: | ||
- name: pwenv | ||
path: /pwenv | ||
timeout: 900s | ||
|
||
- name: "connectedhomeip/chip-build-vscode:0.6.06" | ||
env: | ||
- PW_ENVIRONMENT_ROOT=/pwenv | ||
args: | ||
- "-c" | ||
- ./scripts/build_coverage.sh | ||
id: BuildCoverage | ||
waitFor: | ||
- Bootstrap | ||
entrypoint: /usr/bin/bash | ||
volumes: | ||
- name: pwenv | ||
path: /pwenv | ||
timeout: 900s | ||
|
||
logsBucket: matter-build-automation-build-logs | ||
|
||
# Global timeout for all steps | ||
timeout: 21600s | ||
queueTtl: 21600s | ||
|
||
artifacts: | ||
objects: | ||
location: "gs://matter-build-automation-artifacts/$PROJECT_ID/$COMMIT_SHA/" | ||
paths: ["/out/coverage/coverage/coverage_html.tar.gz"] | ||
|
||
# Using higher CPU machines generally speeds up builds, except bootstrap is always | ||
# slow. | ||
options: | ||
machineType: "E2_HIGHCPU_32" | ||
diskSizeGb: 500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters