Browse Source

Travis: Add a check for trailing whitespace before any actual compilation.

pull/15/merge
Emmanuel Gil Peyrot 11 years ago
parent
commit
cd03abe08b
  1. 6
      .travis-build.sh

6
.travis-build.sh

@ -3,6 +3,12 @@
set -e set -e
set -x set -x
if grep -r '\s$' src *.yml *.txt *.md Doxyfile .gitignore .gitmodules .travis* dist/*.desktop \
dist/*.svg dist/*.xml; then
echo Trailing whitespace found, aborting
exit 1
fi
#if OS is linux or is not set #if OS is linux or is not set
if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then
mkdir build && cd build mkdir build && cd build

Loading…
Cancel
Save