-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
executable file
·43 lines (34 loc) · 1.05 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# module téléinformation client
# rene-d 2020
# the default target
BOARD := esp12
.PHONY: help build upload check checkall test docker
help:
@echo Developer shortcuts
build:
platformio run -e $(BOARD)
platformio run -e $(BOARD) -t buildfs
upload:
platformio run -e $(BOARD) -t uploadfs
platformio run -e $(BOARD) -t upload
check:
platformio check -e $(BOARD)
checkall:
platformio run -e $(BOARD) -t compiledb
cppcheck --project=.pio/build/$(BOARD)/compile_commands.json --enable=all --xml 2>.pio/cppcheck.xml
cppcheck-htmlreport --file .pio/cppcheck.xml --report-dir=.pio/cppcheck/
@-which open && open .pio/cppcheck/index.html
test:
./runtest.sh
@-which open && open build/coverage.html
@-which open && open build/cppcheck/index.html
docker:
docker buildx build -t test --load .
docker run --rm \
-v $(PWD):/tic:ro \
-v $(PWD)/build/build-docker:/build \
-v $(PWD)/build/results-docker:/results \
test \
/tic/runtest.sh
@-which open && open build/results-docker/coverage.html
@-which open && open build/results-docker/cppcheck/index.html