mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07:00
Modify travis configuration to install valgrind
This should fix previous build failures
This commit is contained in:
parent
a81d25e6e4
commit
a2ce1df772
@ -1,2 +1,5 @@
|
|||||||
language: c
|
language: c
|
||||||
script: ./scripts/travis.sh
|
script: ./scripts/travis.sh
|
||||||
|
before_install:
|
||||||
|
- sudo apt-get update
|
||||||
|
- sudo apt-get install valgrind
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh -e
|
||||||
|
|
||||||
export VALGRIND_CHECK=1
|
export VALGRIND_CHECK=1
|
||||||
make cmake CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$PWD/dist" || exit 1
|
make cmake CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$PWD/dist"
|
||||||
make || exit 1
|
make
|
||||||
echo "Running tests with valgrind..."
|
echo "Running tests with valgrind..."
|
||||||
if ! make test > /dev/null 2>&1; then
|
if ! make test > /dev/null 2>&1; then
|
||||||
failed=$(ls src/testdir/valgrind.*)
|
if ls src/testdir/valgrind.* > /dev/null 2>&1; then
|
||||||
if [ -n "$failed" ]; then
|
|
||||||
echo "Memory leak detected" >&2
|
echo "Memory leak detected" >&2
|
||||||
cat src/testdir/valgrind.*
|
cat src/testdir/valgrind.*
|
||||||
else
|
else
|
||||||
|
@ -28,7 +28,7 @@ SCRIPTS := test1.out test2.out test3.out test4.out test5.out test6.out \
|
|||||||
SCRIPTS_GUI := test16.out
|
SCRIPTS_GUI := test16.out
|
||||||
|
|
||||||
ifdef VALGRIND_CHECK
|
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
|
endif
|
||||||
|
|
||||||
ifdef TESTNUM
|
ifdef TESTNUM
|
||||||
|
Loading…
Reference in New Issue
Block a user