From eec8795d2b4bf565c1cc1ec6fa0cef1e5c9223a4 Mon Sep 17 00:00:00 2001 From: Teemu Toivola Date: Sat, 10 Mar 2018 00:38:32 +0200 Subject: [PATCH] clang specific parameters and warning to errors as travis has only green/red build end status options --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 7407062..a40acfd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,12 +6,15 @@ matrix: dist: trusty sudo: required compiler: gcc + env: CFLAGS='-Wall -Wextra -Werror' - os: linux dist: trusty sudo: required compiler: clang + env: CFLAGS='-Weverything -Wno-padded -Werror' - os: osx compiler: clang + env: CFLAGS='-Weverything -Wno-padded -Werror' addons: apt: @@ -26,7 +29,7 @@ before_install: - if [ "${TRAVIS_OS_NAME}" == "osx" ]; then brew install gd sqlite check ; fi script: - - CFLAGS='-Wall -Wextra -g' ./configure && make check || ( cat test.log ; exit 1 ) && egrep '^[0-9]+%' test.log && ./vnstat --version + - ./configure && make check || ( cat test.log ; exit 1 ) && egrep '^[0-9]+%' test.log && ./vnstat --version notifications: email: -- 2.40.0