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:
@@ -27,6 +27,10 @@ jobs:
|
|||||||
os: linux
|
os: linux
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
script: make clean gateway
|
script: make clean gateway
|
||||||
|
- stage: mstp-build
|
||||||
|
os: linux
|
||||||
|
compiler: gcc
|
||||||
|
script: make clean mstp
|
||||||
- stage: lint
|
- stage: lint
|
||||||
os: linux
|
os: linux
|
||||||
compiler: clang
|
compiler: clang
|
||||||
|
|||||||
@@ -13,6 +13,14 @@ all: apps
|
|||||||
win32:
|
win32:
|
||||||
$(MAKE) BACNET_PORT=win32 -C apps all
|
$(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
|
.PHONY: apps
|
||||||
apps:
|
apps:
|
||||||
$(MAKE) -s -C apps all
|
$(MAKE) -s -C apps all
|
||||||
@@ -109,13 +117,13 @@ pretty:
|
|||||||
find ./apps -iname *.h -o -iname *.c -exec \
|
find ./apps -iname *.h -o -iname *.c -exec \
|
||||||
clang-format -i -style=file -fallback-style=none {} \;
|
clang-format -i -style=file -fallback-style=none {} \;
|
||||||
|
|
||||||
.PHONY : tidy
|
.PHONY: tidy
|
||||||
tidy:
|
tidy:
|
||||||
find ./src -iname *.h -o -iname *.c -exec \
|
find ./src -iname *.h -o -iname *.c -exec \
|
||||||
clang-tidy {} -fix-errors -checks="readability-braces-around-statements" \
|
clang-tidy {} -fix-errors -checks="readability-braces-around-statements" \
|
||||||
-- -Isrc -Iports/linux \;
|
-- -Isrc -Iports/linux \;
|
||||||
|
|
||||||
.PHONY : lint
|
.PHONY: lint
|
||||||
lint:
|
lint:
|
||||||
scan-build --status-bugs -analyze-headers make -j2 clean server
|
scan-build --status-bugs -analyze-headers make -j2 clean server
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user