瀏覽代碼

enhancements of automated coverity checks

Stasik0 10 年之前
父節點
當前提交
333208f662
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. 3 1
      coverity.sh
  2. 1 1
      .travis.yml

+ 3 - 1
coverity.sh

@@ -5,7 +5,7 @@
 # of the day to the coverity scan service
 #
 
-COMMITS=`git log --since=yesterday | grep commit | wc -l`
+COMMITS=`git log --since=today.midnight | grep commit | wc -l`
 
 if [[ "$COMMITS" == "1" ]]; then
     #first commit a day - push changes to branch coverity_scan
@@ -21,4 +21,6 @@ if [[ "$COMMITS" == "1" ]]; then
     git push https://$GITAUTH@github.com/acplt/open62541
     cd ..
     rm -rf open62541
+else
+    echo "Not the first commit of the day - no push to coverity required"
 fi

+ 1 - 1
.travis.yml

@@ -42,4 +42,4 @@ after_success:
    - cd ..
    - cd ..
    - rm -rf open62541
-   - ./coverity.sh
+   - ./.coverity.sh