@@ -130,6 +130,8 @@ before_script:
130
130
131
131
script :
132
132
- NPROC=$(getconf _NPROCESSORS_ONLN)
133
+ - set -o errexit
134
+ - echo -e "\\033[33;1mConfiguring Vim\\033[0m" && echo -en "travis_fold:start:configure\\r\\033[0K"
133
135
- |
134
136
if [[ "${CHECK_AUTOCONF}" = "yes" ]] && [[ "${CC}" = "gcc" ]]; then
135
137
make -C src autoconf
@@ -138,13 +140,17 @@ script:
138
140
if [[ -n "${SHADOWOPT}" ]]; then
139
141
make -C src shadow
140
142
fi
143
+ # "./configure" changes its working directory into "$SRCDIR".
144
+ - ./configure --with-features=${FEATURES} ${CONFOPT} --enable-fail-if-missing
145
+ - echo -en "travis_fold:end:configure\\r\\033[0K"
146
+ - echo -e "\\033[33;1mBuilding Vim\\033[0m" && echo -en "travis_fold:start:build\\r\\033[0K"
141
147
- |
142
- (
143
- cd "${SRCDIR}" \
144
- && ./configure --with-features=${FEATURES} ${CONFOPT} --enable-fail-if-missing
145
- ) && if [[ "${BUILD}" = "yes" ]]; then
148
+ if [[ "${BUILD}" = "yes" ]]; then
146
149
make ${SHADOWOPT} -j${NPROC}
147
150
fi
151
+ - echo -en "travis_fold:end:build\\r\\033[0K"
152
+ - set +o errexit
153
+ - echo -e "\\033[33;1mTesting Vim\\033[0m" && echo -en "travis_fold:start:test\\r\\033[0K"
148
154
# Show Vim version and also if_xx versions.
149
155
- |
150
156
if [[ "${BUILD}" = "yes" ]]; then
@@ -154,12 +160,13 @@ script:
154
160
cat if_ver.txt
155
161
fi
156
162
- make ${SHADOWOPT} ${TEST}
163
+ - echo -en "travis_fold:end:test\\r\\033[0K"
157
164
- |
158
165
if [[ -n "${ASAN_OPTIONS}" ]]; then
159
166
while read log; do
160
167
asan_symbolize < "${log}"
168
+ false # exit 1 if there are ASAN logs
161
169
done < <(find . -type f -name 'asan.*' -size +0)
162
- [[ -z "${log}" ]] # exit 1 if there are ASAN logs
163
170
fi
164
171
165
172
after_success :
0 commit comments