1
0
mirror of https://github.com/citra-emu/citra.git synced 2024-12-21 11:00:07 +00:00

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

This commit is contained in:
Emmanuel Gil Peyrot 2015-05-25 20:28:17 +02:00
parent b1503b2020
commit cd03abe08b

View File

@ -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