Skip to content
Snippets Groups Projects
Commit cd03abe0 authored by Emmanuel Gil Peyrot's avatar Emmanuel Gil Peyrot
Browse files

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

parent b1503b20
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,12 @@
set -e
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 [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then
mkdir build && cd build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment