diff --git a/.travis.yml b/.travis.yml index ef11ea1a0..1a66580a5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,6 +26,7 @@ env: - BUILD_SHARED_LIBS=ON - BUILD_SHARED_LIBS=OFF script: + - if grep -Inr '\s$' src include docs deps tests examples CMake *.md .gitattributes .gitignore .github; then echo Trailing whitespace found, aborting.; exit 1; fi - mkdir build - cd build - cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} ..