ソースを参照

Check for trailing whitespace in Travis

Closes #1133.
Emmanuel Gil Peyrot 7 年 前
コミット
0ee9a03b1e
1 ファイル変更1 行追加0 行削除
  1. 1 0
      .travis.yml

+ 1 - 0
.travis.yml

@@ -50,6 +50,7 @@ matrix:
         - os: osx
           env: BUILD_SHARED_LIBS=OFF
 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
     - 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