Uploading test logs to Amazon S3 when a TravisCI build fails on master