add mstp targets into Makefile. Add mstp as stage in CI jobs. (#41)

* add mstp targets into Makefile. Add mstp as stage in CI jobs.
This commit is contained in:
Steve Karg
2020-02-02 10:02:00 -06:00
committed by GitHub
parent 914f502cff
commit cf24303128
2 changed files with 14 additions and 2 deletions
+4
View File
@@ -27,6 +27,10 @@ jobs:
os: linux
compiler: gcc
script: make clean gateway
- stage: mstp-build
os: linux
compiler: gcc
script: make clean mstp
- stage: lint
os: linux
compiler: clang
+10 -2
View File
@@ -13,6 +13,14 @@ all: apps
win32:
$(MAKE) BACNET_PORT=win32 -C apps all
.PHONY: mstpwin32
mstpwin32:
$(MAKE) BACDL=mstp BACNET_PORT=win32 -C apps all
.PHONY: mstp
mstp:
$(MAKE) BACDL=mstp -C apps all
.PHONY: apps
apps:
$(MAKE) -s -C apps all
@@ -109,13 +117,13 @@ pretty:
find ./apps -iname *.h -o -iname *.c -exec \
clang-format -i -style=file -fallback-style=none {} \;
.PHONY : tidy
.PHONY: tidy
tidy:
find ./src -iname *.h -o -iname *.c -exec \
clang-tidy {} -fix-errors -checks="readability-braces-around-statements" \
-- -Isrc -Iports/linux \;
.PHONY : lint
.PHONY: lint
lint:
scan-build --status-bugs -analyze-headers make -j2 clean server