| { |
| "configs": [ |
| { |
| "name": "bazel_default", |
| "description": "Default bazel build configuration (usually host)", |
| "build_type": "bazel", |
| "args": [], |
| "env": {} |
| } |
| ], |
| "builds": [ |
| { |
| "name": "host", |
| "use_config": "bazel_default", |
| "targets": [ |
| "//..." |
| ] |
| }, |
| { |
| "name": "rp2040", |
| "build_config": { |
| "name": "rp2040_config", |
| "description": "RP2040 build", |
| "build_type": "bazel", |
| "args": [ |
| "--config=rp2040" |
| ], |
| "driver_options": { |
| "@type": "pw.build.proto.BazelDriverOptions", |
| "no_test": true |
| } |
| }, |
| "targets": [ |
| "//..." |
| ] |
| }, |
| { |
| "name": "asan", |
| "build_config": { |
| "name": "asan_config", |
| "description": "ASAN config", |
| "build_type": "bazel", |
| "args": [ |
| "--config=asan" |
| ], |
| "env": {} |
| }, |
| "targets": [ |
| "//..." |
| ] |
| }, |
| { |
| "name": "tsan", |
| "build_config": { |
| "name": "tsan_config", |
| "description": "TSAN config", |
| "build_type": "bazel", |
| "args": [ |
| "--config=tsan", |
| "--runs_per_test=10" |
| ], |
| "env": {} |
| }, |
| "targets": [ |
| "//..." |
| ] |
| }, |
| { |
| "name": "ubsan", |
| "build_config": { |
| "name": "ubsan_config", |
| "description": "UBSAN config", |
| "build_type": "bazel", |
| "args": [ |
| "--config=ubsan" |
| ], |
| "env": {} |
| }, |
| "targets": [ |
| "//..." |
| ] |
| }, |
| { |
| "name": "clang_tidy", |
| "build_config": { |
| "name": "clang_tidy_config", |
| "description": "Clang-Tidy config", |
| "build_type": "bazel", |
| "args": [ |
| "--config=clang-tidy" |
| ], |
| "env": {}, |
| "driver_options": { |
| "@type": "pw.build.proto.BazelDriverOptions", |
| "no_test": true |
| } |
| }, |
| "targets": [ |
| "//..." |
| ] |
| }, |
| { |
| "name": "pylint", |
| "build_config": { |
| "name": "pylint_config", |
| "description": "Pylint config", |
| "build_type": "bazel", |
| "args": [ |
| "--config=pylint" |
| ], |
| "env": {}, |
| "driver_options": { |
| "@type": "pw.build.proto.BazelDriverOptions", |
| "no_test": true |
| } |
| }, |
| "targets": [ |
| "//..." |
| ] |
| }, |
| { |
| "name": "mypy", |
| "build_config": { |
| "name": "mypy_config", |
| "description": "Mypy config", |
| "build_type": "bazel", |
| "args": [ |
| "--config=mypy" |
| ], |
| "env": {}, |
| "driver_options": { |
| "@type": "pw.build.proto.BazelDriverOptions", |
| "no_test": true |
| } |
| }, |
| "targets": [ |
| "//..." |
| ] |
| } |
| ], |
| "tools": [ |
| { |
| "name": "format", |
| "description": "Find and fix code formatting issues", |
| "use_config": "bazel_default", |
| "analyzer_friendly_args": [ |
| "--check" |
| ], |
| "target": "@pigweed//pw_presubmit/py:format" |
| } |
| ], |
| "groups": [ |
| { |
| "name": "default", |
| "description": "Quick presubmit for validating code changes locally", |
| "analyzers": [ |
| "format" |
| ], |
| "builds": [ |
| "host", |
| "rp2040", |
| "asan", |
| "tsan", |
| "ubsan", |
| "clang_tidy", |
| "pylint", |
| "mypy" |
| ] |
| } |
| ] |
| } |