Merge pull request #1140 from guggero/integrationtest-logfile-upload

Integration tests: upload logs from TravisCI to file.io as well
This commit is contained in:
Olaoluwa Osuntokun 2018-05-01 21:08:14 -07:00 committed by GitHub
commit 097fd50747
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,4 +16,5 @@ script:
- export PATH=$PATH:$GOPATH/bin
- make travis
after_script:
- find *.log | xargs -I{} sh -c "cat {} | nc termbin.com 9999 | xargs -r0 printf '{} uploaded to %s'"
- echo "Uploading to termbin.com..." && find *.log | xargs -I{} sh -c "cat {} | nc termbin.com 9999 | xargs -r0 printf '{} uploaded to %s'"
- echo "Uploading to file.io..." && tar -zcvO *.log | curl -s -F 'file=@-;filename=logs.tar.gz' https://file.io | xargs -r0 printf 'logs.tar.gz uploaded to %s\n'