Check for trailing whitespace in Travis

Closes #1133.
This commit is contained in:
Emmanuel Gil Peyrot 2017-11-17 03:37:37 +00:00 committed by Camilla Löwy
parent c3cba58a71
commit 0ee9a03b1e

View File

@ -50,6 +50,7 @@ matrix:
- os: osx - os: osx
env: BUILD_SHARED_LIBS=OFF env: BUILD_SHARED_LIBS=OFF
script: script:
- if grep -Inr '\s$' src include docs tests examples CMake *.md .gitattributes .gitignore; then echo Trailing whitespace found, aborting.; exit 1; fi
- mkdir build - mkdir build
- cd build - cd build
- if test -n "${USE_WAYLAND}"; then wget https://mirrors.kernel.org/ubuntu/pool/universe/e/extra-cmake-modules/extra-cmake-modules_5.38.0a-0ubuntu1_amd64.deb; fi - if test -n "${USE_WAYLAND}"; then wget https://mirrors.kernel.org/ubuntu/pool/universe/e/extra-cmake-modules/extra-cmake-modules_5.38.0a-0ubuntu1_amd64.deb; fi