travis: remove cocci and macos builds

These tests are covered by Github actions and removing
them may speed up the Travis builds to get results sooner.

Its still worth keeping some of these builds as they test
more compile time options than the Github Actions currently
do.
pull/4428/head
Jason Ish 5 years ago
parent c08ec8d8b2
commit 222a81f85d

@ -97,24 +97,6 @@ matrix:
- DO_CHECK_SETUP_SCRIPTS="yes"
- DO_DISTCHECK="yes"
include:
# Linux, gcc, coccinelle.
- os: linux
compiler: gcc-7
env:
- NAME="linux,gcc-7,cocci"
- *default-cflags
- NO_UNITTESTS=yes
addons:
apt:
sources:
- sourceline: ppa:npalix/coccinelle
# For gcc-7.
- sourceline: ppa:ubuntu-toolchain-r/test
packages:
- *packages
- coccinelle
- gcc-7
- python3-sphinx
# Linux, gcc, Rust (latest stable).
# This is allowed to fail, update allow_failures if the env changes.
- os: linux
@ -192,14 +174,6 @@ matrix:
- NAME="Unsupported Rust version"
- RUST_VERSION="1.32.0"
- CONFIGURE_SHOULD_FAIL="yes"
# OSX 10.13, XCode 8.3
- os: osx
compiler: gcc
osx_image: xcode8.3
sudo: true
env:
- NAME="osx,gcc"
- *default-cflags
# Linux, gcc, no nss/nspr.
- os: linux
compiler: gcc
@ -224,41 +198,4 @@ before_install:
# match the requested version.
rustup default "${RUST_VERSION}"
rustc --version
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update
# Unlink and install each dependency to avoid errors where a
# formula might already be installed but is not the current
# version.
packages=""
packages="$packages pkg-config"
packages="$packages libmagic"
packages="$packages libyaml"
packages="$packages nss"
packages="$packages nspr"
packages="$packages jansson"
packages="$packages libnet"
packages="$packages lua"
packages="$packages pcre"
packages="$packages hiredis"
packages="$packages jq"
packages="$packages xz"
for package in $packages; do
if brew ls $package --versions > /dev/null; then
brew unlink $package
fi
done
# Now install.
brew install $packages
# Now relink, becuase if a newer version of a package wasn't
# installed above, it will remain unlinked.
brew link $packages
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python ./get-pip.py
sudo pip install PyYAML
fi
- ./qa/travis-libhtp.sh

@ -8,25 +8,13 @@ if [[ "${NO_UNITTESTS}" != "yes" ]]; then
ARGS="${ARGS} --enable-unittests"
fi
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export CFLAGS="${CFLAGS} ${EXTRA_CFLAGS}"
if ! ./configure --enable-nfqueue --enable-hiredis ${ARGS}; then
if [[ "${CONFIGURE_SHOULD_FAIL}" = "yes" ]]; then
EXIT_CODE=0
else
EXIT_CODE=1
fi
export CFLAGS="${CFLAGS} ${EXTRA_CFLAGS}"
if ! ./configure --enable-nfqueue --enable-hiredis ${ARGS}; then
if [[ "${CONFIGURE_SHOULD_FAIL}" = "yes" ]]; then
EXIT_CODE=0
else
EXIT_CODE=1
fi
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export CFLAGS="${CFLAGS} ${EXTRA_CFLAGS}"
./configure --enable-hiredis --enable-ipfw \
--enable-lua --with-libpcre-includes=/usr/local/include \
--with-libpcre-includes=/usr/local/include \
--with-libpcre-libraries=/usr/local/lib \
--with-libnss-includes=/usr/local/opt/nss/include/nss \
--with-libnss-libraries=/usr/local/opt/nss/lib \
--with-libnspr-includes=/usr/local/opt/nspr/include/nspr \
--with-libnspr-libraries=/usr/local/opt/nspr/lib ${ARGS}
fi
if [[ "${EXIT_CODE}" ]]; then

Loading…
Cancel
Save