Commit d06dc092 authored by Vasil Velichkov's avatar Vasil Velichkov Committed by Lev Walkin

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
parent b37ee639
......@@ -9,7 +9,10 @@ script:
- 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 {} +
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment