From: Greg Hudson Date: Sun, 16 Apr 2017 01:50:02 +0000 (-0400) Subject: Update Travis build for warning-clean clang build X-Git-Tag: krb5-1.16-beta1~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F637%2Fhead;p=thirdparty%2Fkrb5.git Update Travis build for warning-clean clang build Create a custom build matrix which passes -Werror to the clang build via a make variable. (Using a configure variable does not currently work, as some of our configure test programs generate warnings.) Also set the language to C++ (so we use clang++ for the C++ test programs and not g++ when compiling with clang), and turn on the maintainer-mode checks for the Travis build. --- diff --git a/.travis.yml b/.travis.yml index 88ad5e0027..59d1da56c5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,14 @@ -language: c +language: c++ sudo: required dist: trusty -compiler: - - clang - - gcc +matrix: + include: + - compiler: clang + env: MAKEVARS=CPPFLAGS=-Werror + - compiler: gcc before_install: - sudo apt-get update -qq @@ -21,4 +23,4 @@ before_install: - sudo make install - cd ../.. -script: cd src && autoreconf && ./configure --with-ldap && make && make check +script: cd src && autoreconf && ./configure --enable-maintainer-mode --with-ldap && make $MAKEVARS && make check