mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 03:29:28 +01:00
adjust path
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
311cac2fce
commit
d2777cc208
@ -11,7 +11,7 @@
|
|||||||
ruby scripts/analysis/lint-up.rb $1 $2 $3
|
ruby scripts/analysis/lint-up.rb $1 $2 $3
|
||||||
lintValue=$?
|
lintValue=$?
|
||||||
|
|
||||||
./gradlew assemble app:findbugs
|
./gradlew assembleGplay app:findbugs
|
||||||
|
|
||||||
# exit codes:
|
# exit codes:
|
||||||
# 0: count was reduced
|
# 0: count was reduced
|
||||||
@ -22,14 +22,14 @@ echo "Branch: $3"
|
|||||||
|
|
||||||
if [ $3 = "master" ]; then
|
if [ $3 = "master" ]; then
|
||||||
echo "New findbugs result for master at: https://www.kaminsky.me/nc-dev/talk-findbugs/master.html"
|
echo "New findbugs result for master at: https://www.kaminsky.me/nc-dev/talk-findbugs/master.html"
|
||||||
curl -u $4:$5 -X PUT https://nextcloud.kaminsky.me/remote.php/webdav/talk-findbugs/master.html --upload-file build/reports/findbugs/findbugs.html
|
curl -u $4:$5 -X PUT https://nextcloud.kaminsky.me/remote.php/webdav/talk-findbugs/master.html --upload-file app/build/reports/findbugs/findbugs.html
|
||||||
|
|
||||||
summary=$(sed -n "/<h1>Summary<\/h1>/,/<h1>Warnings<\/h1>/p" build/reports/findbugs/findbugs.html | head -n-1 | sed s'/<\/a>//'g | sed s'/<a.*>//'g | sed s'/Summary/FindBugs (master)/' | tr "\"" "\'" | tr -d "\r\n")
|
summary=$(sed -n "/<h1>Summary<\/h1>/,/<h1>Warnings<\/h1>/p" app/build/reports/findbugs/findbugs.html | head -n-1 | sed s'/<\/a>//'g | sed s'/<a.*>//'g | sed s'/Summary/FindBugs (master)/' | tr "\"" "\'" | tr -d "\r\n")
|
||||||
curl -u $4:$5 -X PUT -d "$summary" https://nextcloud.kaminsky.me/remote.php/webdav/talk-findbugs/findbugs.html
|
curl -u $4:$5 -X PUT -d "$summary" https://nextcloud.kaminsky.me/remote.php/webdav/talk-findbugs/findbugs.html
|
||||||
|
|
||||||
if [ $lintValue -ne 1 ]; then
|
if [ $lintValue -ne 1 ]; then
|
||||||
echo "New lint result for master at: https://www.kaminsky.me/nc-dev/talk-lint/master.html"
|
echo "New lint result for master at: https://www.kaminsky.me/nc-dev/talk-lint/master.html"
|
||||||
curl -u $4:$5 -X PUT https://nextcloud.kaminsky.me/remote.php/webdav/talk-droneLogs/master.html --upload-file build/reports/lint/lint.html
|
curl -u $4:$5 -X PUT https://nextcloud.kaminsky.me/remote.php/webdav/talk-droneLogs/master.html --upload-file app/build/reports/lint/lint.html
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
@ -37,10 +37,10 @@ else
|
|||||||
6="master-"$(date +%F)
|
6="master-"$(date +%F)
|
||||||
fi
|
fi
|
||||||
echo "New lint results at https://www.kaminsky.me/nc-dev/talk-lint/$6.html"
|
echo "New lint results at https://www.kaminsky.me/nc-dev/talk-lint/$6.html"
|
||||||
curl 2>/dev/null -u $4:$5 -X PUT https://nextcloud.kaminsky.me/remote.php/webdav/talk-droneLogs/$6.html --upload-file build/reports/lint/lint.html
|
curl 2>/dev/null -u $4:$5 -X PUT https://nextcloud.kaminsky.me/remote.php/webdav/talk-droneLogs/$6.html --upload-file app/build/reports/lint/lint.html
|
||||||
|
|
||||||
echo "New findbugs results at https://www.kaminsky.me/nc-dev/talk-findbugs/$6.html"
|
echo "New findbugs results at https://www.kaminsky.me/nc-dev/talk-findbugs/$6.html"
|
||||||
curl 2>/dev/null -u $4:$5 -X PUT https://nextcloud.kaminsky.me/remote.php/webdav/talk-findbugs/$6.html --upload-file build/reports/findbugs/findbugs.html
|
curl 2>/dev/null -u $4:$5 -X PUT https://nextcloud.kaminsky.me/remote.php/webdav/talk-findbugs/$6.html --upload-file app/build/reports/findbugs/findbugs.html
|
||||||
|
|
||||||
# delete all old comments
|
# delete all old comments
|
||||||
oldComments=$(curl 2>/dev/null -u $1:$2 -X GET https://api.github.com/repos/nextcloud/talk-android/issues/$7/comments | jq '.[] | (.id |tostring) + "|" + (.user.login | test("nextcloud-android-bot") | tostring) ' | grep true | tr -d "\"" | cut -f1 -d"|")
|
oldComments=$(curl 2>/dev/null -u $1:$2 -X GET https://api.github.com/repos/nextcloud/talk-android/issues/$7/comments | jq '.[] | (.id |tostring) + "|" + (.user.login | test("nextcloud-android-bot") | tostring) ' | grep true | tr -d "\"" | cut -f1 -d"|")
|
||||||
|
@ -56,7 +56,7 @@ end
|
|||||||
|
|
||||||
# run Lint
|
# run Lint
|
||||||
puts "running Lint..."
|
puts "running Lint..."
|
||||||
system './gradlew clean assemble lint'
|
system './gradlew clean assembleGplay lint'
|
||||||
|
|
||||||
# confirm that Lint ran w/out error
|
# confirm that Lint ran w/out error
|
||||||
result = $?.to_i
|
result = $?.to_i
|
||||||
|
Loading…
Reference in New Issue
Block a user