123456789101112131415161718192021222324252627282930313233343536 |
- #!/bin/sh
- ruby scripts/lint/lint-up.rb $1 $2 $3
- returnValue=$?
- echo "Branch: $3"
- if [ $3 = "master" -a $returnValue -ne 1 ]; then
- echo "New master at: https://nextcloud.kaminsky.me/index.php/s/tXwtChzyqMj6I8v"
- curl -u $4:$5 -X PUT https://nextcloud.kaminsky.me/remote.php/webdav/droneLogs/master.html --upload-file build/reports/lint/lint.html
- exit 0
- else
- if [ -e $6 ]; then
- 6="master-"$(date +%F)
- fi
- echo "New results at https://nextcloud.kaminsky.me/index.php/s/tXwtChzyqMj6I8v ->" $6.html
- curl -u $4:$5 -X PUT https://nextcloud.kaminsky.me/remote.php/webdav/droneLogs/$6.html --upload-file build/reports/lint/lint.html
-
- if [ $returnValue -eq 2 ]; then
- exit 0
- else
- exit $returnValue
- fi
- fi
|