lint-up-wrapper.sh 647 B

12345678910111213141516171819
  1. #!/bin/sh
  2. #1: GIT_USERNAME
  3. #2: GIT_TOKEN
  4. #3: BRANCH
  5. #4: LOG_USERNAME
  6. #5: LOG_PASSWORD
  7. #6: DRONE_BUILD_NUMBER
  8. cd `dirname $0`
  9. ruby ./lint-up.rb $1 $2 $3
  10. if [ $? -eq 0 ]; then
  11. echo "New master at: https://nextcloud.kaminsky.me/index.php/s/tXwtChzyqMj6I8v"
  12. curl -u $4:$5 -X PUT https://nextcloud.kaminsky.me/remote.php/webdav/droneLogs/master.html --upload-file ../../build/reports/lint/lint.html
  13. else
  14. echo "New results at https://nextcloud.kaminsky.me/index.php/s/tXwtChzyqMj6I8v ->" $6.html
  15. curl -u $4:$5 -X PUT https://nextcloud.kaminsky.me/remote.php/webdav/droneLogs/$6.html --upload-file ../../build/reports/lint/lint.html
  16. fi