]> The Tcpdump Group git mirrors - libpcap/commitdiff
Coverity: update .travis.yml for analysis by pushing in 'coverity_scan' branch
authorFrancois-Xavier Le Bail <[email protected]>
Fri, 18 Apr 2014 13:35:14 +0000 (15:35 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Fri, 18 Apr 2014 13:35:14 +0000 (15:35 +0200)
.travis.yml

index 827ca707945529739569b7cd6c6ffa55be08ef4c..40485ffa73762d1682b3f1148a7288923f6b2a5c 100644 (file)
@@ -4,10 +4,41 @@ compiler:
   - gcc
   - clang
 
+env:
+  global:
+    # encrypted COVERITY_SCAN_TOKEN from
+    # https://scan.coverity.com/projects/<project_id>/submit_build?tab=travis_ci
+    - secure: "E7nrxhoBrST9SOy6PM+IN89k1EznzXWgsKSvB+fK2oNdLxAD+jaFCbG4JGwYzFzSwmBgd7NEQGSJi4uYotsvBPSxPBwiA/tQPniPvUd/dahTQxB1eJlYb+/hMYuumCHHK09zmPbTNU/v7qLc+NgMUM5bTCUG62dErFkx03WeHPM="
+    # Coverity run condition (avoid matrix multiple runs), need customized
+    # build script. Need an update if new matrix cases.
+    - coverity_scan_run_condition='"$CC" = gcc'
+    # Coverity script test mode (if true no uploading, avoid reaching the quota)
+    # usual processing: false.
+    - coverity_scan_script_test_mode=false
+
+addons:
+  coverity_scan:
+    # customized build script URL
+    # TRAVIS_REPO_SLUG: owner_name/repo_name of repository currently being built
+    # TRAVIS_BRANCH: name of the branch currently being built
+    build_script_url: https://raw.githubusercontent.com/$TRAVIS_REPO_SLUG/$TRAVIS_BRANCH/.travis-coverity-scan-build.sh
+    # project metadata
+    project:
+      name: $TRAVIS_REPO_SLUG
+    # Where email notification of build analysis results will be sent
+    notification_email: [email protected]
+    # Commands to prepare for build_command
+    build_command_prepend: ./configure
+    # This command will be added as an argument to "cov-build" to compile
+    # the project for analysis
+    build_command: make
+    # Pattern to match selecting branches that will run analysis
+    branch_pattern: coverity_scan
+
 before_script:
   - sudo apt-get install libusb-1.0-0-dev libdbus-1-dev
 
 script:
-  - touch .devel configure
-  - ./configure
-  - make -s
+  - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then touch .devel configure; fi
+  - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then ./configure; fi
+  - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then make -s; fi