15 # encrypted COVERITY_SCAN_TOKEN from
16 # https://scan.coverity.com/projects/<project_id>/submit_build?tab=travis_ci
17 - secure: "DwUeukcRGl1vXNZDDt2237zCA58ZzmzWpCkPcb/Hpeh8OvRw1eBZJiu4L8iD2qtY4A/dPDvOeBiml5MF6bVri9Dui1yPkvkvFqIXzbK5CWS6Ye+NgSBNMwqnAjhTMv/x8I4Bvy9IhDGwj/2JXVUvjBddRMLRyr/ag+MDRB1IVAI="
18 # Coverity run condition (avoid matrix multiple runs), need customized
19 # build script. Need an update if new matrix cases.
20 - coverity_scan_run_condition='"$TRAVIS_OS_NAME" = linux -a "$CC" = gcc -a "$REMOTE" = enable -a "$CMAKE" = no -a "$CRYPTO" = yes'
21 # Coverity script test mode (if true no uploading, avoid reaching the quota)
22 # usual processing: false.
23 - coverity_scan_script_test_mode=false
25 # NOTE: REMOTE= is for the libpcap build, which is done with autotools
26 # even if we're building tcpdump with CMake.
27 - CMAKE=no REMOTE=disable CRYPTO=no
28 - CMAKE=no REMOTE=disable CRYPTO=yes
29 - CMAKE=no REMOTE=enable CRYPTO=no
30 - CMAKE=no REMOTE=enable CRYPTO=yes
31 - CMAKE=yes REMOTE=disable CRYPTO=no
32 - CMAKE=yes REMOTE=disable CRYPTO=yes
33 - CMAKE=yes REMOTE=enable CRYPTO=no
34 - CMAKE=yes REMOTE=enable CRYPTO=yes
41 # customized build script URL
42 # TRAVIS_REPO_SLUG: owner_name/repo_name of repository currently being built
43 # TRAVIS_BRANCH: name of the branch currently being built
44 build_script_url: https://raw.githubusercontent.com/$TRAVIS_REPO_SLUG/$TRAVIS_BRANCH/.travis-coverity-scan-build.sh
47 name: $TRAVIS_REPO_SLUG
48 # Where email notification of build analysis results will be sent
49 #notification_email: tcpdump-workers@lists.tcpdump.org
50 # Commands to prepare for build_command
51 build_command_prepend: ./configure
52 # This command will be added as an argument to "cov-build" to compile
53 # the project for analysis
55 # Pattern to match selecting branches that will run analysis
56 branch_pattern: coverity_scan
79 - if [ "$TRAVIS_OS_NAME" = osx ]; then brew update >/dev/null; fi
82 - if [ "$TRAVIS_OS_NAME" = osx ]; then brew install libsmi | grep -v '%'; fi
85 - if [ "$BUILD_LIBPCAP" = true ]; then (cd .. && echo '$ git clone [...] libpcap.git' && git clone --depth=50 --branch=master --quiet git://github.com/the-tcpdump-group/libpcap.git && cd libpcap && ./configure "--${REMOTE}-remote" --prefix=/tmp && make && make install); fi
88 - if [ "$COVERITY_SCAN_BRANCH" != 1 -a "$CMAKE" = no ]; then touch .devel configure; fi
89 - if [ "$COVERITY_SCAN_BRANCH" != 1 -a "$CMAKE" = no ]; then echo '$ ./configure [...]' && echo -n travis_fold:start:script.configure; fi
90 - if [ "$COVERITY_SCAN_BRANCH" != 1 -a "$CMAKE" = no ]; then ./configure --with-crypto=${CRYPTO} CPPFLAGS="-I/usr/local/Cellar/openssl/1.0.2l/include/" --prefix=/tmp; fi
91 - if [ "$COVERITY_SCAN_BRANCH" != 1 -a "$CMAKE" = yes ]; then mkdir build; fi
92 - if [ "$COVERITY_SCAN_BRANCH" != 1 -a "$CMAKE" = yes ]; then cd build; fi
93 - if [ "$COVERITY_SCAN_BRANCH" != 1 -a "$CMAKE" = yes ]; then cmake -DCMAKE_PREFIX_PATH=/tmp -DCMAKE_INSTALL_PREFIX=/tmp ..; fi
94 - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then echo -n travis_fold:end:script.configure; fi
95 - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then make -s; fi
96 - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then echo '$ make install [...]' && echo -n travis_fold:start:script.make_install; fi
97 - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then PATH=$PATH make install; fi
98 - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then echo -n travis_fold:end:script.make_install; fi
99 - if [ "$COVERITY_SCAN_BRANCH" != 1 -a "$CMAKE" = no ]; then make check; fi
100 - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then ./tcpdump -D; fi
101 - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then ./tcpdump -J; fi
102 - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then ./tcpdump --version; fi
103 - if [ "$COVERITY_SCAN_BRANCH" != 1 -a "$CMAKE" = no ]; then make releasetar; fi