From 587ad29acfde798212ee8f0e36df0093133a1d70 Mon Sep 17 00:00:00 2001 From: "Yichun Zhang (agentzh)" Date: Sun, 15 May 2016 19:51:06 -0700 Subject: travis-ci: added valgrind testing mode as well. --- .travis.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index af7bd17..35e3809 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,12 +16,15 @@ env: install: - sudo apt-get update - - sudo apt-get install -qq -y $LUA luarocks cppcheck + - sudo apt-get install -qq -y $LUA luarocks cppcheck valgrind - sudo apt-get install -qq -y cpanminus libipc-run3-perl > build.log 2>&1 || (cat build.log && exit 1) - sudo cpanm --notest Test::Base Test::LongString > build.log 2>&1 || (cat build.log && exit 1) script: - cppcheck --force --error-exitcode=1 --enable=warning . > build.log 2>&1 || (cat build.log && exit 1) + - sh runtests.sh - make - prove -Itests tests - - sh runtests.sh + - TEST_LUA_USE_VALGRIND=1 prove -Itests tests > build.log 2>&1 + - cat build.log + - grep -E '^==[0-9]+==' build.log; if [ "$?" == 0 ]; then exit 1; else exit 0; fi -- cgit v1.2.3-55-g6feb