mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 14:52:45 +01:00
Travis: Add a check for trailing whitespace before any actual compilation.
This commit is contained in:
parent
b1503b2020
commit
cd03abe08b
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue