]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
travis: don't configure with CFLAGS=-Werror
authorVincent Bernat <vincent@bernat.im>
Thu, 19 Feb 2015 16:05:18 +0000 (17:05 +0100)
committerVincent Bernat <vincent@bernat.im>
Thu, 19 Feb 2015 16:05:18 +0000 (17:05 +0100)
This is unsupported. Instead, call `make CFLAGS=-Werror`.

.travis/run.sh

index 091af086bfa596c65ecf20779e5aded1ab322b64..07032c6021e5698624a30b8370895c5d83efc4d8 100755 (executable)
@@ -15,17 +15,18 @@ case "${RUN_COVERITY}","${TRAVIS_BRANCH}" in
 esac
 
 ./autogen.sh
-./configure $LLDPD_CONFIG_ARGS CFLAGS="-O0 -g -Wall -Werror"
+./configure $LLDPD_CONFIG_ARGS 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
+    make all check CFLAGS=-Werror
     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"