diff options
| -rw-r--r-- | .travis.yml | 7 |
1 files 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: | |||
| 16 | 16 | ||
| 17 | install: | 17 | install: |
| 18 | - sudo apt-get update | 18 | - sudo apt-get update |
| 19 | - sudo apt-get install -qq -y $LUA luarocks cppcheck | 19 | - sudo apt-get install -qq -y $LUA luarocks cppcheck valgrind |
| 20 | - sudo apt-get install -qq -y cpanminus libipc-run3-perl > build.log 2>&1 || (cat build.log && exit 1) | 20 | - sudo apt-get install -qq -y cpanminus libipc-run3-perl > build.log 2>&1 || (cat build.log && exit 1) |
| 21 | - sudo cpanm --notest Test::Base Test::LongString > build.log 2>&1 || (cat build.log && exit 1) | 21 | - sudo cpanm --notest Test::Base Test::LongString > build.log 2>&1 || (cat build.log && exit 1) |
| 22 | 22 | ||
| 23 | script: | 23 | script: |
| 24 | - cppcheck --force --error-exitcode=1 --enable=warning . > build.log 2>&1 || (cat build.log && exit 1) | 24 | - cppcheck --force --error-exitcode=1 --enable=warning . > build.log 2>&1 || (cat build.log && exit 1) |
| 25 | - sh runtests.sh | ||
| 25 | - make | 26 | - make |
| 26 | - prove -Itests tests | 27 | - prove -Itests tests |
| 27 | - sh runtests.sh | 28 | - TEST_LUA_USE_VALGRIND=1 prove -Itests tests > build.log 2>&1 |
| 29 | - cat build.log | ||
| 30 | - grep -E '^==[0-9]+==' build.log; if [ "$?" == 0 ]; then exit 1; else exit 0; fi | ||
