summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-05-11 14:34:13 +0200
committerBram Moolenaar <Bram@vim.org>2019-05-11 14:34:13 +0200
commitdc9f9e93f5229fd4325472ed62e7b17872d64060 (patch)
tree1ead48008e1879a816253898c41ed72413148ed1 /.travis.yml
parentd6896731ecb74b419389f75d79210e088a9caa77 (diff)
downloadvim-git-dc9f9e93f5229fd4325472ed62e7b17872d64060.tar.gz
patch 8.1.1317: output from Travis can be improvedv8.1.1317
Problem: Output from Travis can be improved. Solution: Add section headers. Handle errors better. (closes #4098)
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml17
1 files changed, 12 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index d683b13ef..1e5ee562d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -130,6 +130,8 @@ before_script:
script:
- 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
make -C src autoconf
@@ -138,13 +140,17 @@ script:
if [[ -n "${SHADOWOPT}" ]]; then
make -C src shadow
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"
- |
- (
- cd "${SRCDIR}" \
- && ./configure --with-features=${FEATURES} ${CONFOPT} --enable-fail-if-missing
- ) && if [[ "${BUILD}" = "yes" ]]; then
+ if [[ "${BUILD}" = "yes" ]]; then
make ${SHADOWOPT} -j${NPROC}
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.
- |
if [[ "${BUILD}" = "yes" ]]; then
@@ -154,12 +160,13 @@ script:
cat if_ver.txt
fi
- make ${SHADOWOPT} ${TEST}
+ - echo -en "travis_fold:end:test\\r\\033[0K"
- |
if [[ -n "${ASAN_OPTIONS}" ]]; then
while read log; do
asan_symbolize < "${log}"
+ false # exit 1 if there are ASAN logs
done < <(find . -type f -name 'asan.*' -size +0)
- [[ -z "${log}" ]] # exit 1 if there are ASAN logs
fi
after_success: