neovim/scripts/travis.sh

22 lines
452 B
Bash
Raw Normal View History

#!/bin/sh -e
export VALGRIND_CHECK=1
export BUSTED_OUTPUT_TYPE="TAP"
make cmake CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$PWD/dist"
make
2014-02-27 14:51:53 -07:00
make unittest
2014-02-26 17:33:39 -07:00
echo "Running tests with valgrind..."
if ! make test; then
if ls src/testdir/valgrind.* > /dev/null 2>&1; then
2014-02-26 17:33:39 -07:00
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
2014-02-26 17:33:39 -07:00
fi
make install