travis_push_coverity.sh 444 B

123456789101112131415
  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. echo "=== Pushing ${TRAVIS_BRANCH} to coverity_scan branch ==="
  6. COMMITS=`git log --oneline --since=today.midnight | wc -l`
  7. if [ "$COMMITS" -le 1 ]; then
  8. git push https://$GITAUTH@github.com/open62541/open62541 master:coverity_scan
  9. else
  10. echo "Not the first commit of the day - no push to coverity required"
  11. fi