diff options
author | Haibo Huang <hhb@google.com> | 2020-04-23 18:03:48 -0700 |
---|---|---|
committer | Haibo Huang <haibohuang2010@gmail.com> | 2020-04-24 20:59:17 +0000 |
commit | 4ccd683fae8e4b569dc039846de0fc5d8cc70c94 (patch) | |
tree | 7f07c9236e9a996d534941c26c3e7f1a0064d258 /.travis.yml | |
parent | cfbd48b369a8ac731f57a29bc73a0baa080e9344 (diff) | |
download | libpcap-4ccd683fae8e4b569dc039846de0fc5d8cc70c94.tar.gz |
Upgrade to libpcap 1.9.1
Change-Id: I26905770a2acc947419f09111e8b595cefe9087c
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..086765fc --- /dev/null +++ b/.travis.yml @@ -0,0 +1,85 @@ +sudo: false +language: c + +os: + - linux + - osx + +compiler: + - gcc + - clang + +env: + global: + # encrypted COVERITY_SCAN_TOKEN from + # https://scan.coverity.com/projects/<project_id>/submit_build?tab=travis_ci + - secure: "SwNcek+I4lMVcnb5EGGmNm6ljWN6C/mnXzBr82a5rEQNKxAoJfdvvPpKIp0iEfg5j0PtYlcRHoIDyVZ/6QM/WEw0wrio9Z0cio9hkOS6kV8g2QouXfnoNtKJ5nNso7UD2GPJ9+M0GIR1GZ0Edvxr81sHlNAkpVKydYGBwCIMGyg=" + # Coverity run condition (avoid matrix multiple runs), need customized + # build script. Need an update if new matrix cases. + - coverity_scan_run_condition='"$TRAVIS_OS_NAME" = linux -a "$CC" = gcc -a "$REMOTE" = enable -a "$CMAKE" = no' + # Coverity script test mode (if true no uploading, avoid reaching the quota) + # usual processing: false. + - coverity_scan_script_test_mode=false + matrix: + - REMOTE=disable CMAKE=no + - ENABLE_REMOTE="" CMAKE=yes + - REMOTE=enable CMAKE=no + - ENABLE_REMOTE="-DENABLE_REMOTE=ON" CMAKE=yes + +matrix: + fast_finish: true + +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: tcpdump-workers@lists.tcpdump.org + # Commands to prepare for build_command + build_command_prepend: ./configure --enable-remote + # 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 + apt: + packages: + - libusb-1.0-0-dev + - libdbus-glib-1-dev + - libbluetooth-dev + - libnl-genl-3-dev + - libibverbs-dev + +git: + quiet: true + depth: 3 + +before_install: + - uname -a + - date + +install: + +before_script: + +script: + - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then touch .devel configure; fi + - if [ "$COVERITY_SCAN_BRANCH" != 1 -a "$CMAKE" = no ]; then echo '$ ./configure [...]' && echo -n travis_fold:start:script.configure; fi + - if [ "$COVERITY_SCAN_BRANCH" != 1 -a "$CMAKE" = no ]; then ./configure --prefix=/tmp "--${REMOTE}-remote"; fi + - if [ "$COVERITY_SCAN_BRANCH" != 1 -a "$CMAKE" = yes ]; then mkdir build; fi + - if [ "$COVERITY_SCAN_BRANCH" != 1 -a "$CMAKE" = yes ]; then cd build; fi + - if [ "$COVERITY_SCAN_BRANCH" != 1 -a "$CMAKE" = yes ]; then cmake -DCMAKE_INSTALL_PREFIX=/tmp $ENABLE_REMOTE ..; fi + - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then echo -n travis_fold:end:script.configure; fi + - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then make -s all; fi + - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then make -s testprogs; fi + - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then echo '$ make install [...]' && echo -n travis_fold:start:script.make_install; fi + - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then PATH=$PATH make install; fi + - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then echo -n travis_fold:end:script.make_install; fi + - if [ "$COVERITY_SCAN_BRANCH" != 1 -a "$CMAKE" = no ]; then testprogs/findalldevstest; fi + - if [ "$COVERITY_SCAN_BRANCH" != 1 -a "$CMAKE" = yes ]; then run/findalldevstest; fi + - if [ "$COVERITY_SCAN_BRANCH" != 1 -a "$CMAKE" = no ]; then make releasetar; fi |