Skip to content

Commit 002d4ba

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [Github Actions] Rust coverage. Another way to install llvm-cov.
1 parent 2f3c00b commit 002d4ba

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Makefile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ DOCKER_COMPOSE=docker compose
3232
.PHONY: all clean dependencies help list test outdated
3333
.EXPORT_ALL_VARIABLES: # (2)
3434

35+
define crono
36+
@start=$$(date +%s); \
37+
$(1); \
38+
end=$$(date +%s); \
39+
diff=$$((end - start)); \
40+
printf "Total time: %02d:%02d:%02d\n" $$((diff/3600)) $$((diff%3600/60)) $$((diff%60))
41+
endef
42+
43+
3544
help: list
3645

3746
list:
@@ -126,7 +135,8 @@ compose/test: compose/build
126135
compose/run: compose/build
127136
${DOCKER_COMPOSE} --profile production run --rm algorithm-exercises-ts make run
128137

129-
all: env dependencies test
138+
all:
139+
$(call crono, make clean; make dependencies; make build; make test; make lint; make coverage/html)
130140

131141
run:
132142
ls -alh

0 commit comments

Comments
 (0)