Files
json-c/.travis.yml
Alexandru Ardelean effab3f91a travis,tests: run cppcheck only if it exists
ugh... seems cppcheck is not packaged for OS X
And `set -e` exposes this.

And also `cppcheck` seems to exit with non-zero
exit codes by default [even if errs found].

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-07-13 09:05:13 +03:00

33 lines
411 B
YAML

language: cpp
compiler:
- gcc
- clang
addons:
apt:
packages:
- cppcheck
os:
- linux
- osx
before_install:
- echo $LANG
- echo $LC_ALL
- set -e
install:
- sh autogen.sh
before_script:
- ./configure
script:
- make
after_success:
- make check
- if type cppcheck &> /dev/null ; then cppcheck --error-exitcode=1 --quiet *.h *.c tests/ ; fi