Skip to content

Commit

Permalink
chore: add coverage target to Makefile (#2382)
Browse files Browse the repository at this point in the history
  • Loading branch information
romanzac authored Jan 30, 2024
1 parent c1121dd commit 5737887
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,17 @@ networkmonitor: | build deps librln
###################
## Documentation ##
###################
.PHONY: docs
.PHONY: docs coverage

# TODO: Remove unused target
docs: | build deps
echo -e $(BUILD_MSG) "build/$@" && \
$(ENV_SCRIPT) nim doc --run --index:on --project --out:.gh-pages waku/waku.nim waku.nims

coverage:
echo -e $(BUILD_MSG) "build/$@" && \
$(ENV_SCRIPT) ./scripts/run_cov.sh -y


#####################
## Container image ##
Expand Down
2 changes: 1 addition & 1 deletion scripts/run_cov.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ SCRIPT_PATH=$(dirname "$(realpath -s "$0")")
REPO_ROOT=$(dirname $SCRIPT_PATH)
generated_not_to_break_here="$REPO_ROOT/generated_not_to_break_here"

if [ -f $generated_not_to_break_here ]
if [ "$1" != "-y" ] && [ -f "$generated_not_to_break_here" ]
then
echo "The file '$generated_not_to_break_here' already exists. Do you want to continue? (y/n)"
read -r response
Expand Down

0 comments on commit 5737887

Please sign in to comment.