Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,13 @@ repos:
- "prettier@3.1.0"
- "@prettier/plugin-xml@3.3.1"
files: \.(xml)$

- repo: local
hooks:
- id: no-coverage-mixins
name: Keep coverage mixins out of the workspace colcon defaults
description: Coverage stays off in the template. Opt in through COLCON_DEFAULTS_FILE.
# Matches coverage- anywhere outside a comment, including quoted and flow-style entries.
entry: '^[^#]*coverage-'
language: pygrep
files: ^colcon-defaults\.yaml$
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ RUN colcon mixin add default \
colcon metadata add default \
https://raw.githubusercontent.com/colcon/colcon-metadata-repository/master/index.yaml && \
colcon metadata update
COPY colcon-defaults.yaml /home/${USERNAME}/.colcon/defaults.yaml
# --chown lets colcon read the defaults even when the entrypoint has not re-chowned $HOME yet.
COPY --chown=${USER_UID}:${USER_GID} colcon-defaults.yaml /home/${USERNAME}/.colcon/defaults.yaml

# hadolint ignore=DL3002
USER root
Expand Down
3 changes: 1 addition & 2 deletions colcon-defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ build:
# Debug info and build testing for dev workflows
- rel-with-deb-info
- build-testing-on
- coverage-gcc
- coverage-pytest
# Coverage is off because the image lacks pytest-cov and gcov slows builds. Opt in through COLCON_DEFAULTS_FILE.
test:
event-handlers:
- console_direct+
Expand Down
Loading