summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Emmanuel Gil Peyrot2015-05-25 20:28:17 +0200
committerGravatar Emmanuel Gil Peyrot2015-05-29 21:59:30 +0100
commitcd03abe08bbcff7b971054c77c0e1459efe1572c (patch)
tree706e345043532d90cd8ca5c41af67fc31dfa7d2e
parentRemove every trailing whitespace from the project (but externals). (diff)
downloadyuzu-cd03abe08bbcff7b971054c77c0e1459efe1572c.tar.gz
yuzu-cd03abe08bbcff7b971054c77c0e1459efe1572c.tar.xz
yuzu-cd03abe08bbcff7b971054c77c0e1459efe1572c.zip
Travis: Add a check for trailing whitespace before any actual compilation.
-rwxr-xr-x.travis-build.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/.travis-build.sh b/.travis-build.sh
index 1028a1573..14dfd64d8 100755
--- a/.travis-build.sh
+++ b/.travis-build.sh
@@ -3,6 +3,12 @@
3set -e 3set -e
4set -x 4set -x
5 5
6if grep -r '\s$' src *.yml *.txt *.md Doxyfile .gitignore .gitmodules .travis* dist/*.desktop \
7 dist/*.svg dist/*.xml; then
8 echo Trailing whitespace found, aborting
9 exit 1
10fi
11
6#if OS is linux or is not set 12#if OS is linux or is not set
7if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then 13if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then
8 mkdir build && cd build 14 mkdir build && cd build