MATRIX_CC: clang gcc10
script:
- pkg install -qy git autoconf gcc10
MATRIX_CC: clang gcc10
script:
- pkg install -qy git autoconf gcc10
- - pkg install -qy bash cmake # for build_matrix.sh and build.sh
+ - pkg install -qy cmake # for build_matrix.sh and build.sh
- pkg install -qy pkgconf # for cmake, replaces pkg-config
- echo '$ git clone [...] libpcap.git'
- git -C .. clone --depth ${CIRRUS_CLONE_DEPTH} --branch=master --quiet ${LIBPCAP_GIT}
- pkg install -qy pkgconf # for cmake, replaces pkg-config
- echo '$ git clone [...] libpcap.git'
- git -C .. clone --depth ${CIRRUS_CLONE_DEPTH} --branch=master --quiet ${LIBPCAP_GIT}
# This script runs one build with setup environment variables: BUILD_LIBPCAP,
# REMOTE, CC, CMAKE, CRYPTO and SMB
# (default: BUILD_LIBPCAP=no, REMOTE=no, CC=gcc, CMAKE=no, CRYPTO=no, SMB=no).
# This script runs one build with setup environment variables: BUILD_LIBPCAP,
# REMOTE, CC, CMAKE, CRYPTO and SMB
# (default: BUILD_LIBPCAP=no, REMOTE=no, CC=gcc, CMAKE=no, CRYPTO=no, SMB=no).
# BUILD_LIBPCAP: no or yes
BUILD_LIBPCAP=${BUILD_LIBPCAP:-no}
# REMOTE: no or yes
# BUILD_LIBPCAP: no or yes
BUILD_LIBPCAP=${BUILD_LIBPCAP:-no}
# REMOTE: no or yes
export TCPDUMP_BIN="$PREFIX/bin/tcpdump"
travis_fold() {
export TCPDUMP_BIN="$PREFIX/bin/tcpdump"
travis_fold() {
- local action=${1:?}
- local name=${2:?}
+ tf_action=${1:?}
+ tf_name=${2:?}
if [ "$TRAVIS" != true ]; then return; fi
if [ "$TRAVIS" != true ]; then return; fi
- echo -ne "travis_fold:$action:$LABEL.script.$name\\r"
+ printf 'travis_fold:%s:%s.script.%s\r' "$tf_action" "$LABEL" "$tf_name"
sleep 1
}
# Run a command after displaying it
run_after_echo() {
sleep 1
}
# Run a command after displaying it
run_after_echo() {
echo "$@"
# shellcheck disable=SC2068
$@
echo "$@"
# shellcheck disable=SC2068
$@
# This script executes the matrix loops, exclude tests and cleaning.
# It calls the build.sh script which runs one build with setup environment
# This script executes the matrix loops, exclude tests and cleaning.
# It calls the build.sh script which runs one build with setup environment
# MATRIX_CC='gcc clang', MATRIX_CMAKE='no yes', MATRIX_CRYPTO='no yes',
# MATRIX_SMB='no yes').
# MATRIX_CC='gcc clang', MATRIX_CMAKE='no yes', MATRIX_CRYPTO='no yes',
# MATRIX_SMB='no yes').
-set -e
-
-# ANSI color escape sequences
-ANSI_MAGENTA="\\033[35;1m"
-ANSI_RESET="\\033[0m"
uname -a
date
# Install directory prefix
uname -a
date
# Install directory prefix
- local action=${1:?}
- local name=${2:?}
+ tf_action=${1:?}
+ tf_name=${2:?}
if [ "$TRAVIS" != true ]; then return; fi
if [ "$TRAVIS" != true ]; then return; fi
- echo -ne "travis_fold:$action:$LABEL.script.$name\\r"
+ printf 'travis_fold:%s:%s.script.%s\r' "$tf_action" "$LABEL" "$tf_name"
sleep 1
}
# Display text in magenta
echo_magenta() {
sleep 1
}
# Display text in magenta
echo_magenta() {
- echo -ne "$ANSI_MAGENTA"
+ printf '\033[35;1m' # ANSI magenta
+ printf '\033[0m' # ANSI reset