aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-02-26 22:23:51 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-02-26 22:23:51 -0300
commita2ce1df772a15220e4b9220ba0c884891c980b0f (patch)
treedcada5683009b75aa1f08613c39b76303ef44094
parenta81d25e6e45f6b1d5be31251d08a62b32344f602 (diff)
downloadrneovim-a2ce1df772a15220e4b9220ba0c884891c980b0f.tar.gz
rneovim-a2ce1df772a15220e4b9220ba0c884891c980b0f.tar.bz2
rneovim-a2ce1df772a15220e4b9220ba0c884891c980b0f.zip
Modify travis configuration to install valgrind
This should fix previous build failures
-rw-r--r--.travis.yml3
-rwxr-xr-xscripts/travis.sh9
-rw-r--r--src/testdir/Makefile2
3 files changed, 8 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index cb54bbcc09..cc8ea7a445 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,2 +1,5 @@
language: c
script: ./scripts/travis.sh
+before_install:
+ - sudo apt-get update
+ - sudo apt-get install valgrind
diff --git a/scripts/travis.sh b/scripts/travis.sh
index 5662f5f06d..ff0a625d6e 100755
--- a/scripts/travis.sh
+++ b/scripts/travis.sh
@@ -1,12 +1,11 @@
-#!/bin/sh
+#!/bin/sh -e
export VALGRIND_CHECK=1
-make cmake CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$PWD/dist" || exit 1
-make || exit 1
+make cmake CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$PWD/dist"
+make
echo "Running tests with valgrind..."
if ! make test > /dev/null 2>&1; then
- failed=$(ls src/testdir/valgrind.*)
- if [ -n "$failed" ]; then
+ if ls src/testdir/valgrind.* > /dev/null 2>&1; then
echo "Memory leak detected" >&2
cat src/testdir/valgrind.*
else
diff --git a/src/testdir/Makefile b/src/testdir/Makefile
index 98d92915ab..f096cb5b70 100644
--- a/src/testdir/Makefile
+++ b/src/testdir/Makefile
@@ -28,7 +28,7 @@ SCRIPTS := test1.out test2.out test3.out test4.out test5.out test6.out \
SCRIPTS_GUI := test16.out
ifdef VALGRIND_CHECK
-VALGRIND = valgrind --suppressions=../../.valgrind.supp --leak-check=yes --error-exitcode=111 --log-file=valgrind.$*
+VALGRIND = valgrind --suppressions=../../.valgrind.supp --leak-check=full --error-exitcode=111 --log-file=valgrind.$*
endif
ifdef TESTNUM