Detect trailing whitespace

This commit is contained in:
Marijn van der Werf 2017-05-09 01:34:14 +02:00 committed by YamaArashi
parent e75c3262f3
commit bb5ba37736
2 changed files with 7 additions and 0 deletions

View File

@ -21,6 +21,7 @@ install:
- cd agbcc && ./build.sh && ./install.sh $TRAVIS_BUILD_DIR
script:
- cd $TRAVIS_BUILD_DIR
- ./whitespace.sh
- ./build_tools.sh
- make -j2 compare_ruby
- make -j2 compare_ruby_rev1

6
whitespace.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
if grep -Enr "\s+\$" src; then
# Trailing whitespace detected
exit 1
fi