From: andy5995 Date: Wed, 24 Jul 2019 06:08:30 +0000 (-0500) Subject: .travis.yml:install valgrind X-Git-Tag: json-c-0.14-20200419~91^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=50e7fff0f39b77e86a2df9838a6d2e42729bfde1;p=thirdparty%2Fjson-c.git .travis.yml:install valgrind (#498) --- diff --git a/.travis.yml b/.travis.yml index 1471983e..b64c5a40 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,7 @@ addons: apt: packages: - cppcheck + - valgrind os: - linux @@ -29,4 +30,9 @@ script: after_success: - make check + - result=$? - if type cppcheck &> /dev/null ; then cppcheck --error-exitcode=1 --quiet *.h *.c tests/ ; fi + - if [ $result != 0 ]; then + cat tests/*.log; + exit $result; + fi