From d38b5d8fc63392c8d50edaf2a1cbc91909c3645b Mon Sep 17 00:00:00 2001 From: reuk Date: Wed, 25 Oct 2017 10:36:20 +0100 Subject: [PATCH] Disable colour in travis diff display --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0b70b485c53..2a15b77b9c6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,9 +20,10 @@ jobs: # Now we can do the formatting pass clang-format --version git-clang-format-3.8 "${TRAVIS_BRANCH}" - git diff --color > formatted.diff + git diff > formatted.diff if [[ -s formatted.diff ]] ; then - echo 'Formatting error! Apply the following diff and resubmit:' + echo 'Formatting error! The following diff shows the required changes' + echo 'Use the raw log to get a version of the diff that preserves spacing' cat formatted.diff exit 1 fi