mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
ci: Dump $NVIM_LOG_FILE contents
This commit is contained in:
parent
fe1af9c2bc
commit
eb6dd3e42d
@ -21,6 +21,8 @@ env:
|
||||
- INSTALL_PREFIX="$HOME/nvim-install"
|
||||
# Log directory for Clang sanitizers and Valgrind.
|
||||
- LOG_DIR="$BUILD_DIR/log"
|
||||
# Nvim log file.
|
||||
- NVIM_LOG_FILE="$BUILD_DIR/.nvimlog"
|
||||
# Default CMake flags.
|
||||
- CMAKE_FLAGS="-DTRAVIS_CI_BUILD=ON
|
||||
-DCMAKE_BUILD_TYPE=Debug
|
||||
|
@ -39,6 +39,13 @@ enter_suite() {
|
||||
|
||||
exit_suite() {
|
||||
set +x
|
||||
if test -f "$NVIM_LOG_FILE" ; then
|
||||
printf "===============================================================================\n"
|
||||
printf "NVIM_LOG_FILE: $NVIM_LOG_FILE\n"
|
||||
cat "$NVIM_LOG_FILE" 2>/dev/null || printf '(empty)'
|
||||
printf "\n"
|
||||
rm -rf "$NVIM_LOG_FILE"
|
||||
fi
|
||||
travis_fold end "${NVIM_TEST_CURRENT_SUITE}"
|
||||
if test $FAILED -ne 0 ; then
|
||||
echo "Suite ${NVIM_TEST_CURRENT_SUITE} failed, summary:"
|
||||
|
@ -74,7 +74,7 @@ set backspace=
|
||||
set nohidden smarttab noautoindent noautoread complete-=i noruler noshowcmd
|
||||
set listchars=eol:$
|
||||
" Prevent Nvim log from writing to stderr.
|
||||
let $NVIM_LOG_FILE='Xnvim.log'
|
||||
let $NVIM_LOG_FILE = exists($NVIM_LOG_FILE) ? $NVIM_LOG_FILE : 'Xnvim.log'
|
||||
|
||||
func RunTheTest(test)
|
||||
echo 'Executing ' . a:test
|
||||
|
@ -187,7 +187,7 @@ func RunVim(before, after, arguments)
|
||||
endfunc
|
||||
|
||||
func RunVimPiped(before, after, arguments, pipecmd)
|
||||
let $NVIM_LOG_FILE='Xnvim.log'
|
||||
let $NVIM_LOG_FILE = exists($NVIM_LOG_FILE) ? $NVIM_LOG_FILE : 'Xnvim.log'
|
||||
let cmd = GetVimCommand()
|
||||
if cmd == ''
|
||||
return 0
|
||||
|
Loading…
Reference in New Issue
Block a user