Added cppcheck of BACnet source into pipeline (#171)
Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
@@ -10,6 +10,7 @@ before_install:
|
|||||||
- sudo apt-get install -qq gcc-avr avr-libc binutils-avr
|
- sudo apt-get install -qq gcc-avr avr-libc binutils-avr
|
||||||
- sudo apt-get install -qq mingw-w64
|
- sudo apt-get install -qq mingw-w64
|
||||||
- sudo apt-get install -qq libconfig-dev
|
- sudo apt-get install -qq libconfig-dev
|
||||||
|
- sudo apt-get install -qq cppcheck
|
||||||
|
|
||||||
compiler:
|
compiler:
|
||||||
- gcc
|
- gcc
|
||||||
@@ -61,6 +62,10 @@ jobs:
|
|||||||
os: linux
|
os: linux
|
||||||
compiler: clang
|
compiler: clang
|
||||||
script: make clean lint
|
script: make clean lint
|
||||||
|
- stage: cppcheck
|
||||||
|
os: linux
|
||||||
|
compiler: gcc
|
||||||
|
script: make clean cppcheck
|
||||||
- stage: ports-arm
|
- stage: ports-arm
|
||||||
os: linux
|
os: linux
|
||||||
before_script:
|
before_script:
|
||||||
|
|||||||
@@ -181,6 +181,14 @@ tidy:
|
|||||||
lint:
|
lint:
|
||||||
scan-build --status-bugs -analyze-headers make -j2 clean server
|
scan-build --status-bugs -analyze-headers make -j2 clean server
|
||||||
|
|
||||||
|
CPPCHECK_OPTIONS = --enable=warning,portability
|
||||||
|
CPPCHECK_OPTIONS += --template=gcc
|
||||||
|
CPPCHECK_OPTIONS += --suppress=selfAssignment
|
||||||
|
|
||||||
|
.PHONY: cppcheck
|
||||||
|
cppcheck:
|
||||||
|
cppcheck $(CPPCHECK_OPTIONS) --quiet --force ./src/
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
$(MAKE) -s -C src clean
|
$(MAKE) -s -C src clean
|
||||||
|
|||||||
Reference in New Issue
Block a user