added error log printing

This commit is contained in:
Mariotaku Lee 2017-03-04 21:40:24 +08:00
parent a484cb0967
commit aeb0f57c0c
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535
2 changed files with 9 additions and 0 deletions

View File

@ -75,6 +75,9 @@ before_script:
script:
- ./gradlew clean build
after_failure:
- travis/scripts/print_error_logs.sh
deploy:
provider: releases
prerelease: true

View File

@ -0,0 +1,6 @@
#!/bin/bash
for log_file in 'hs_err_*.log'; do
echo "Error log ${log_file}:"
cat ${log_file}
done