travis: Test nvim --version in gcc build

The --version flag drives Nvim to take a different code path, which is worth
testing. Now we do it in the "gcc" ci target(It will only fail if the exit code
is different than 0)
This commit is contained in:
Thiago de Arruda 2014-11-03 15:25:02 -03:00
parent b320904382
commit 9615258d1a

View File

@ -11,6 +11,7 @@ export VALGRIND_LOG="$tmpdir/valgrind-%p.log"
CMAKE_EXTRA_FLAGS="-DTRAVIS_CI_BUILD=ON -DUSE_GCOV=ON" CMAKE_EXTRA_FLAGS="-DTRAVIS_CI_BUILD=ON -DUSE_GCOV=ON"
$MAKE_CMD CMAKE_EXTRA_FLAGS="${CMAKE_EXTRA_FLAGS}" unittest $MAKE_CMD CMAKE_EXTRA_FLAGS="${CMAKE_EXTRA_FLAGS}" unittest
build/bin/nvim --version
if ! $MAKE_CMD test; then if ! $MAKE_CMD test; then
valgrind_check "$tmpdir" valgrind_check "$tmpdir"
exit 1 exit 1