From b909137f94ad6c37939c73125b1bba81d1d81abc Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Tue, 18 Jul 2017 13:37:14 -0700 Subject: [PATCH] Disallow tabs in Travis CI This addresses some concerns raised in #142, but perhaps it also makes sense to expand this beyond `creduce.in` to the rest of the code base. --- .travis.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 86ec0b9c..07179bee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,12 +16,18 @@ language: cpp before_install: - sudo scripts/travis_deps.sh -script: > - CXX=/usr/lib/llvm-4.0/bin/clang++ - CC=/usr/lib/llvm-4.0/bin/clang - ./configure --with-llvm=/usr/lib/llvm-4.0 && - make -j2 && - make check +script: + - | + if grep -q ' ' ./creduce/creduce.in; then + echo "No tabs allowed" + exit 1 + fi + - | + CXX=/usr/lib/llvm-4.0/bin/clang++ + CC=/usr/lib/llvm-4.0/bin/clang + ./configure --with-llvm=/usr/lib/llvm-4.0 && + make -j2 && + make check ###############################################################################