Twidere-App-Android-Twitter.../travis/scripts/upload_error_logs.sh

12 lines
669 B
Bash
Raw Normal View History

2017-04-25 18:16:28 +02:00
#!/bin/bash
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
2017-04-25 19:15:41 +02:00
exit 0
2017-04-25 18:16:28 +02:00
fi
curl 'https://raw.githubusercontent.com/andreafabrizi/Dropbox-Uploader/master/dropbox_uploader.sh' -o travis/scripts/dropbox_uploader.sh
chmod +x travis/scripts/dropbox_uploader.sh
find /tmp -maxdepth 1 -name 'kotlin-daemon.*.log' -exec sh -c 'travis/scripts/dropbox_uploader.sh upload $1 $TRAVIS_BUILD_ID/$(basename $1)' find-sh {} \;
find ~/.gradle/daemon/ -name 'daemon-*.log' -exec sh -c 'travis/scripts/dropbox_uploader.sh upload $1 $TRAVIS_BUILD_ID/gradle-$(basename $1)' find-sh {} \;
2017-04-25 19:15:41 +02:00
dmesg > dmesg.log; travis/scripts/dropbox_uploader.sh upload dmesg.log ${TRAVIS_BUILD_ID}/dmesg.log