]> git.ipfire.org Git - thirdparty/lldpd.git/blobdiff - .travis/run.sh
tests: report complete Linux version as well
[thirdparty/lldpd.git] / .travis / run.sh
index 9592b279657adc2639d10da5c572802c708c94d5..70c10f9f3beea27d6e7276b471c74d33b756ae06 100755 (executable)
@@ -15,19 +15,27 @@ case "${RUN_COVERITY}","${TRAVIS_BRANCH}" in
 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