diff options
| author | 2015-05-25 20:28:17 +0200 | |
|---|---|---|
| committer | 2015-05-29 21:59:30 +0100 | |
| commit | cd03abe08bbcff7b971054c77c0e1459efe1572c (patch) | |
| tree | 706e345043532d90cd8ca5c41af67fc31dfa7d2e | |
| parent | Remove every trailing whitespace from the project (but externals). (diff) | |
| download | yuzu-cd03abe08bbcff7b971054c77c0e1459efe1572c.tar.gz yuzu-cd03abe08bbcff7b971054c77c0e1459efe1572c.tar.xz yuzu-cd03abe08bbcff7b971054c77c0e1459efe1572c.zip | |
Travis: Add a check for trailing whitespace before any actual compilation.
Diffstat (limited to '')
| -rwxr-xr-x | .travis-build.sh | 6 |
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 @@ | |||
| 3 | set -e | 3 | set -e |
| 4 | set -x | 4 | set -x |
| 5 | 5 | ||
| 6 | if 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 | ||
| 10 | fi | ||
| 11 | |||
| 6 | #if OS is linux or is not set | 12 | #if OS is linux or is not set |
| 7 | if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then | 13 | if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then |
| 8 | mkdir build && cd build | 14 | mkdir build && cd build |