Skip to content

Commit dfaa92c

Browse files
committed
Problem: test-suite.log is not accessible on failing CI build
Currently, a test fails on Travis-CI but that can not be reproduced locally. Without the contents of the test-suite.log, this is difficult to analyze. Solution: print test-suite.log if "make check" fails This is based on the following answer on SO: http://stackoverflow.com/a/32597140
1 parent 782fbe5 commit dfaa92c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ci_build.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ if [ $BUILD_TYPE == "default" ]; then
2121
( cd libsodium; ./autogen.sh; ./configure --prefix=$BUILD_PREFIX; make check; make install)
2222

2323
# Build and check this project
24-
(./autogen.sh && ./configure "${CONFIG_OPTS[@]}" --with-libsodium=yes && make && make check && make install) || exit 1
24+
(
25+
./autogen.sh &&
26+
./configure "${CONFIG_OPTS[@]}" --with-libsodium=yes &&
27+
make &&
28+
( if make check; then true; else cat test-suite.log; exit 1; fi ) &&
29+
make install
30+
) || exit 1
2531
else
2632
cd ./builds/${BUILD_TYPE} && ./ci_build.sh
2733
fi

0 commit comments

Comments
 (0)