neovim/scripts/travis.sh
2014-02-27 18:51:53 -03:00

21 lines
434 B
Bash
Executable File

#!/bin/sh -e
# export VALGRIND_CHECK=1
make cmake CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$PWD/dist"
make
make unittest
echo "Running tests with valgrind..."
if ! make test > /dev/null; then
if ls src/testdir/valgrind.* > /dev/null 2>&1; then
echo "Memory leak detected" >&2
cat src/testdir/valgrind.*
else
echo "Failed tests:" >&2
for t in src/testdir/*.failed; do
echo ${t%%.*}
done
fi
exit 1
fi
make install