Do not ignore the test errors in travis
From `man bash`
The return status of a pipeline is the exit status of the last command, unless the pipefail option is enabled. If pipefail is enabled, the
pipeline's return status is the value of the last (rightmost) command to exit with a non-zero status, or zero if all commands exit successâ
fully.
- Do not tail the check output as the test log is now written in
test-suit.log files
- On failure display the whole content of every test-suite.log file found
in the build directory and exit with 1
diff --git a/.travis.yml b/.travis.yml
index d700d9c..4d29c5e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,7 +9,10 @@
- autoreconf -iv
- ./configure --enable-Werror --enable-code-coverage
- make -j8
- - make check 2>&1 | tail -10000
+ - make check
+ - set -o pipefail
- make distcheck 2>&1 | tail -10000
after_success:
- test "x$CC" = "xgcc" -o "x$CC" = "xclang" && make code-coverage-capture && coveralls-lcov asn1c-*-coverage.info
+after_failure:
+ - find . -name test-suite.log -exec tail -v -n +1 {} +