added cppcheck target for travis
This commit is contained in:
parent
039cedaf8e
commit
d2564c6100
2 changed files with 15 additions and 2 deletions
14
.travis.yml
14
.travis.yml
|
@ -41,6 +41,20 @@ matrix:
|
||||||
after_success:
|
after_success:
|
||||||
- valgrind --error-exitcode=1 --leak-check=full test/json_unit
|
- valgrind --error-exitcode=1 --leak-check=full test/json_unit
|
||||||
|
|
||||||
|
# cppcheck
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
compiler: gcc
|
||||||
|
env:
|
||||||
|
- COMPILER=g++-4.9
|
||||||
|
- SPECIAL=cppcheck
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources: ['ubuntu-toolchain-r-test']
|
||||||
|
packages: [g++-4.9, cppcheck]
|
||||||
|
after_success:
|
||||||
|
- make cppcheck
|
||||||
|
|
||||||
# Coveralls (http://gronlier.fr/blog/2015/01/adding-code-coverage-to-your-c-project/)
|
# Coveralls (http://gronlier.fr/blog/2015/01/adding-code-coverage-to-your-c-project/)
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
|
|
3
Makefile
3
Makefile
|
@ -64,8 +64,7 @@ fuzz: test/src/fuzz.cpp src/json.hpp
|
||||||
|
|
||||||
# call cppcheck on the main header file
|
# call cppcheck on the main header file
|
||||||
cppcheck:
|
cppcheck:
|
||||||
cppcheck --enable=all --inconclusive --std=c++11 src/json.hpp
|
cppcheck --enable=warning --inconclusive --force --std=c++11 src/json.hpp --error-exitcode=1
|
||||||
|
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# maintainer targets
|
# maintainer targets
|
||||||
|
|
Loading…
Reference in a new issue