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

14 lines
1.0 KiB
Bash
Raw Normal View History

2017-04-25 18:16:28 +02:00
#!/bin/bash
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
2017-04-25 20:12:12 +02:00
echo "Skipped for pull request"
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 {} \;
2017-09-02 17:37:40 +02:00
find /tmp -maxdepth 1 -name 'hs_err_pid*.log' -exec sh -c 'travis/scripts/dropbox_uploader.sh upload $1 $TRAVIS_BUILD_ID/$(basename $1)' find-sh {} \;
2017-04-25 18:16:28 +02:00
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
2017-11-16 17:08:17 +01:00
tar -C ./twidere/build/intermediates/multi-dex/ -czf build-multidex.tgz .; travis/scripts/dropbox_uploader.sh upload build-multidex.tgz ${TRAVIS_BUILD_ID}/build-multidex.tgz