patch 8.1.1317: output from Travis can be improved

Problem:    Output from Travis can be improved.
Solution:   Add section headers.  Handle errors better. (closes #4098)
This commit is contained in:
Bram Moolenaar
2019-05-11 14:34:13 +02:00
parent d6896731ec
commit dc9f9e93f5
3 changed files with 15 additions and 6 deletions

View File

@ -130,6 +130,8 @@ before_script:
script: script:
- NPROC=$(getconf _NPROCESSORS_ONLN) - NPROC=$(getconf _NPROCESSORS_ONLN)
- set -o errexit
- echo -e "\\033[33;1mConfiguring Vim\\033[0m" && echo -en "travis_fold:start:configure\\r\\033[0K"
- | - |
if [[ "${CHECK_AUTOCONF}" = "yes" ]] && [[ "${CC}" = "gcc" ]]; then if [[ "${CHECK_AUTOCONF}" = "yes" ]] && [[ "${CC}" = "gcc" ]]; then
make -C src autoconf make -C src autoconf
@ -138,13 +140,17 @@ script:
if [[ -n "${SHADOWOPT}" ]]; then if [[ -n "${SHADOWOPT}" ]]; then
make -C src shadow make -C src shadow
fi fi
# "./configure" changes its working directory into "$SRCDIR".
- ./configure --with-features=${FEATURES} ${CONFOPT} --enable-fail-if-missing
- echo -en "travis_fold:end:configure\\r\\033[0K"
- echo -e "\\033[33;1mBuilding Vim\\033[0m" && echo -en "travis_fold:start:build\\r\\033[0K"
- | - |
( if [[ "${BUILD}" = "yes" ]]; then
cd "${SRCDIR}" \
&& ./configure --with-features=${FEATURES} ${CONFOPT} --enable-fail-if-missing
) && if [[ "${BUILD}" = "yes" ]]; then
make ${SHADOWOPT} -j${NPROC} make ${SHADOWOPT} -j${NPROC}
fi fi
- echo -en "travis_fold:end:build\\r\\033[0K"
- set +o errexit
- echo -e "\\033[33;1mTesting Vim\\033[0m" && echo -en "travis_fold:start:test\\r\\033[0K"
# Show Vim version and also if_xx versions. # Show Vim version and also if_xx versions.
- | - |
if [[ "${BUILD}" = "yes" ]]; then if [[ "${BUILD}" = "yes" ]]; then
@ -154,12 +160,13 @@ script:
cat if_ver.txt cat if_ver.txt
fi fi
- make ${SHADOWOPT} ${TEST} - make ${SHADOWOPT} ${TEST}
- echo -en "travis_fold:end:test\\r\\033[0K"
- | - |
if [[ -n "${ASAN_OPTIONS}" ]]; then if [[ -n "${ASAN_OPTIONS}" ]]; then
while read log; do while read log; do
asan_symbolize < "${log}" asan_symbolize < "${log}"
false # exit 1 if there are ASAN logs
done < <(find . -type f -name 'asan.*' -size +0) done < <(find . -type f -name 'asan.*' -size +0)
[[ -z "${log}" ]] # exit 1 if there are ASAN logs
fi fi
after_success: after_success:

2
configure vendored
View File

@ -3,4 +3,4 @@
# This is just a stub for the Unix configure script, to provide support for # This is just a stub for the Unix configure script, to provide support for
# doing "./configure" in the top Vim directory. # doing "./configure" in the top Vim directory.
cd src && exec ./configure "$@" cd "${SRCDIR:-src}" && exec ./configure "$@"

View File

@ -767,6 +767,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1317,
/**/ /**/
1316, 1316,
/**/ /**/