2014-09-29 05:43:52 -07:00
|
|
|
. "$CI_SCRIPTS/common.sh"
|
|
|
|
|
|
|
|
sudo pip install cpp-coveralls
|
|
|
|
|
2014-11-27 07:10:36 -07:00
|
|
|
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
|
|
|
sudo apt-get install valgrind
|
2014-11-30 03:27:08 -07:00
|
|
|
export VALGRIND=1
|
|
|
|
export VALGRIND_LOG="$tmpdir/valgrind-%p.log"
|
2014-11-27 07:10:36 -07:00
|
|
|
fi
|
|
|
|
|
2014-11-28 15:23:12 -07:00
|
|
|
setup_deps x64
|
2014-09-29 05:43:52 -07:00
|
|
|
|
2014-12-04 03:03:48 -07:00
|
|
|
CMAKE_EXTRA_FLAGS="-DTRAVIS_CI_BUILD=ON \
|
2015-04-13 08:30:23 -07:00
|
|
|
-DUSE_JEMALLOC=OFF \
|
2014-12-04 03:03:48 -07:00
|
|
|
-DUSE_GCOV=ON \
|
|
|
|
-DBUSTED_OUTPUT_TYPE=plainTerminal"
|
2014-09-29 05:43:52 -07:00
|
|
|
|
2014-11-27 07:10:36 -07:00
|
|
|
# Build and output version info.
|
|
|
|
$MAKE_CMD CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS" nvim
|
2014-11-03 11:25:02 -07:00
|
|
|
build/bin/nvim --version
|
2014-11-27 07:10:36 -07:00
|
|
|
|
2014-12-05 18:41:04 -07:00
|
|
|
# Build library.
|
|
|
|
$MAKE_CMD CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS" libnvim
|
|
|
|
|
2014-11-27 07:10:36 -07:00
|
|
|
# Run unittests.
|
|
|
|
make unittest
|
|
|
|
|
|
|
|
# Run functional tests.
|
2014-10-29 19:26:30 -07:00
|
|
|
if ! $MAKE_CMD test; then
|
|
|
|
valgrind_check "$tmpdir"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
valgrind_check "$tmpdir"
|
|
|
|
|
2014-11-27 07:10:36 -07:00
|
|
|
# Run legacy tests.
|
2014-10-29 19:26:30 -07:00
|
|
|
if ! $MAKE_CMD oldtest; then
|
|
|
|
valgrind_check "$tmpdir"
|
|
|
|
exit 1
|
|
|
|
fi
|
2014-09-29 05:43:52 -07:00
|
|
|
valgrind_check "$tmpdir"
|
|
|
|
|
|
|
|
coveralls --encoding iso-8859-1 || echo 'coveralls upload failed.'
|