gitlab/travis: remove nopcap tests.

Lack of capture support is such a rare case, it is not worth spending
too much CI cycles testing it for every build.

Change-Id: Ia9be2b6ba21d0b198e65d746483282ef66cadb84
Reviewed-on: https://code.wireshark.org/review/36626
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
Dario Lombardo 2020-03-29 22:09:29 +02:00 committed by Peter Wu
parent ea2ca383a9
commit 77b0dc6931
2 changed files with 11 additions and 37 deletions

View File

@ -37,14 +37,6 @@
expire_in: 3 days
# Rely on fedora:latest and debian-stable jobs for testing a recent GCC version.
# Since this broke sporadically in the past, test lack of capture support.
gcc-7-nopcap:
<<: *build-ubuntu
variables:
CMAKE_ARGS: -DENABLE_PCAP=NO
CC: gcc-7
CXX: g++-7
clang-10:
<<: *build-ubuntu
variables:

View File

@ -2,11 +2,10 @@ language: minimal
dist: bionic
matrix:
include:
- name: OSX (xcode11.3 clang-11.0.0) with PCAP
- name: OSX (xcode11.3 clang-11.0.0)
os: osx
osx_image: xcode11.3
env: PCAP=ON
- name: Linux amd64 (gcc-9) with PCAP
- name: Linux amd64 (gcc-9)
os: linux
addons:
apt:
@ -18,8 +17,7 @@ matrix:
env:
- CXX=g++-9
- CC=gcc-9
- PCAP=ON
- name: Linux arm64 (gcc-8) with PCAP
- name: Linux arm64 (gcc-8)
os: linux
arch: arm64
addons:
@ -28,50 +26,35 @@ matrix:
env:
- CXX=g++-8
- CC=gcc-8
- PCAP=ON
- name: Linux s390x (gcc-7) with PCAP
- name: Linux s390x (gcc-7)
os: linux
arch: s390x
env:
- PCAP=ON
- name: Linux ppc64le (gcc-7) with PCAP
- name: Linux ppc64le (gcc-7)
os: linux
arch: ppc64le
env:
- PCAP=ON
- name: Linux amd64 (clang) with PCAP
- name: Linux amd64 (clang)
os: linux
env:
- CXX=clang++
- CC=clang
- PCAP=ON
- name: Linux arm64 (clang) with PCAP
- name: Linux arm64 (clang)
os: linux
arch: arm64
env:
- CXX=clang++
- CC=clang
- PCAP=ON
- name: Linux s390x (clang) with PCAP
- name: Linux s390x (clang)
os: linux
arch: s390x
env:
- CXX=clang++
- CC=clang
- PCAP=ON
- name: Linux ppc64le (clang) with PCAP
- name: Linux ppc64le (clang)
os: linux
arch: ppc64le
env:
- CXX=clang++
- CC=clang
- PCAP=ON
- name: Linux amd64 (clang) without PCAP
os: linux
env:
- CXX=clang++
- CC=clang
- PCAP=OFF
- name: Windows (VS2017 x64)
# Set a supported language, otherwise the Windows worker will not start.
language: shell
@ -128,7 +111,7 @@ before_install:
before_script:
- mkdir build
- cd build
- if [ "$TRAVIS_OS_NAME" != "windows" ]; then cmake -GNinja -DENABLE_PCAP=${PCAP} ..; fi
- if [ "$TRAVIS_OS_NAME" != "windows" ]; then cmake -GNinja ..; fi
- if [ "$TRAVIS_OS_NAME" == "windows" ]; then cmake -A $PLATFORM ..; fi
script:
# Enable parallelism for msbuild too (since CMake 3.12; ninja does not need it)
@ -137,8 +120,7 @@ script:
# Invoke ninja (Linux/macOS, --config is ignored) or msbuild (Windows)
- cmake --build . --config RelWithDebInfo
- cmake --build . --config RelWithDebInfo --target test-programs
- if [ "$PCAP" = "OFF" ]; then export PYTEST_ADDOPTS=--skip-missing-programs=dumpcap,rawshark; fi
- if [ "$TRAVIS_OS_NAME" == "linux" -a "$PCAP" = "ON" ]; then sudo setcap cap_net_raw,cap_net_admin+eip run/dumpcap; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo setcap cap_net_raw,cap_net_admin+eip run/dumpcap; fi
- pytest
- cd ..
before_cache: