travis_push_coverity.sh 376 B

12345678910111213
  1. #!/bin/bash
  2. set -ev
  3. # This script is run by travis-ci and pushes the first commit
  4. # of the day to the coverity scan service
  5. COMMITS=`git log --oneline --since=today.midnight | wc -l`
  6. if [ "$COMMITS" -le 1 ]; then
  7. git push https://$GITAUTH@github.com/open62541/open62541 0.2:coverity_scan
  8. else
  9. echo "Not the first commit of the day - no push to coverity required"
  10. fi