app module

This commit is contained in:
tobiasKaminsky 2018-03-07 10:28:37 +01:00
parent 5315e23542
commit 6490719a64
No known key found for this signature in database
GPG Key ID: 0E00D4D47D0C5AF7
2 changed files with 4 additions and 4 deletions

View File

@ -19,14 +19,14 @@ echo "Branch: $3"
if [ $3 = "master" -a $returnValue -ne 1 ]; then if [ $3 = "master" -a $returnValue -ne 1 ]; then
echo "New master at: https://nextcloud.kaminsky.me/index.php/s/fyxdQjc7LCiy57C" echo "New master at: https://nextcloud.kaminsky.me/index.php/s/fyxdQjc7LCiy57C"
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
else else
if [ -e $6 ]; then if [ -e $6 ]; then
6="master-"$(date +%F) 6="master-"$(date +%F)
fi fi
echo "New results at https://nextcloud.kaminsky.me/index.php/s/fyxdQjc7LCiy57C ->" $6.html echo "New results at https://nextcloud.kaminsky.me/index.php/s/fyxdQjc7LCiy57C ->" $6.html
curl -u $4:$5 -X PUT https://nextcloud.kaminsky.me/remote.php/webdav/talk-droneLogs/$6.html --upload-file build/reports/lint/lint.html curl -u $4:$5 -X PUT https://nextcloud.kaminsky.me/remote.php/webdav/talk-droneLogs/$6.html --upload-file app/build/reports/lint/lint.html
if [ $returnValue -eq 2 ]; then if [ $returnValue -eq 2 ]; then
exit 0 exit 0

View File

@ -18,7 +18,7 @@ TRAVIS_GIT_USERNAME = String.new("Drone CI server")
# lintOptions { # lintOptions {
# htmlOutput file("[FILE_NAME].html") # htmlOutput file("[FILE_NAME].html")
# } # }
LINT_REPORT_FILE = String.new("build/reports/lint/lint.html") LINT_REPORT_FILE = String.new("app/build/reports/lint/lint.html")
# File name and relative path of previous results of this script. # File name and relative path of previous results of this script.
PREVIOUS_LINT_RESULTS_FILE=String.new("scripts/lint/lint-results.txt") PREVIOUS_LINT_RESULTS_FILE=String.new("scripts/lint/lint-results.txt")
@ -61,7 +61,7 @@ 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
if result != 0 if result != 0
puts "FAIL: failed to run ./gradlew clean lint" puts "FAIL: failed to run ./gradlew clean assembleGplay lint"
exit 1 exit 1
end end