File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff 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+
3544help : list
3645
3746list :
@@ -126,7 +135,8 @@ compose/test: compose/build
126135compose/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
131141run :
132142 ls -alh
You can’t perform that action at this time.
0 commit comments