From 7d2d454160838c44fb4d91408a09fc400efeadb9 Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Sun, 28 Feb 2016 10:16:47 +0100 Subject: [PATCH 1/2] travis: fail on compiler error --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ad97ef98..9d5e58e7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,7 +47,7 @@ matrix: before_script: - ./bootstrap - if [ -z "$HOST" ]; then - ./configure $ENABLE_DOC --enable-dnie-ui; + CFLAGS="-Werror" ./configure $ENABLE_DOC --enable-dnie-ui; else if [ ! -f "$(winepath 'C:/Program Files (x86)/Inno Setup 5/ISCC.exe')" ]; then /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16; @@ -63,7 +63,7 @@ before_script: script: - if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then if [ $TRAVIS_OS_NAME == osx ]; then - ./MacOSX/build; + CFLAGS="-Werror" ./MacOSX/build; else make; fi; From e631b9d6976e223a46144d21249c996e6e61482f Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Mon, 29 Feb 2016 20:47:09 +0100 Subject: [PATCH 2/2] travis: do not fail on error on Mac OS X The compilation on Mac OS X using clang generates the warning: clang: warning: argument unused during compilation: '-pthread' This is because -pthread is passed during link and this argument is unused. This problem will be hard to fix. The best for now is to NOT fail on warning :-( --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9d5e58e7..75806fa5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -63,7 +63,7 @@ before_script: script: - if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then if [ $TRAVIS_OS_NAME == osx ]; then - CFLAGS="-Werror" ./MacOSX/build; + ./MacOSX/build; else make; fi;