esac
./autogen.sh
-./configure $LLDPD_CONFIG_ARGS CFLAGS="-O0 -g -Wall -Wno-unused-function -Werror"
+./configure $LLDPD_CONFIG_ARGS --enable-pie CFLAGS="-O0 -g"
if [ x"${RUN_COVERITY}" = x"1" ]; then
# Coverity build
[ x"${COVERITY_SCAN_TOKEN}" = x"" ] || \
curl -s https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh | \
COVERITY_SCAN_PROJECT_NAME="$TRAVIS_REPO_SLUG" \
- COVERITY_SCAN_BUILD_COMMAND="make" \
+ COVERITY_SCAN_BUILD_COMMAND="make CFLAGS=-Werror" \
bash
else
# Regular build
- LLDPD_CONFIG_ARGS="$LLDPD_CONFIG_ARGS --with-systemdsystemunitdir=no"
- LLDPD_CONFIG_ARGS="$LLDPD_CONFIG_ARGS --with-launchddaemonsdir=no"
- LLDPD_CONFIG_ARGS="$LLDPD_CONFIG_ARGS --with-sysusersdir=no"
- make distcheck DISTCHECK_CONFIGURE_FLAGS="$LLDPD_CONFIG_ARGS"
+ make all check CFLAGS=-Werror
+ if [ x"$RUN_INTEGRATION" = x"1" ]; then
+ cd tests
+ sudo setfacl -m u:$(id -un):r /boot/vmlinuz-*
+ make integration-tests
+ sh integration-tests
+ else
+ make distcheck
+ if [ x"$TRAVIS_OS_NAME" = x"osx" ]; then
+ make -C osx pkg
+ fi
+ fi
fi