travis: exclude deleted files for astyle.

pull/8751/head
Teppo Järvelin 2018-11-16 13:58:04 +02:00
parent 24213b4601
commit f5ad355854
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ matrix:
- astyle --version - astyle --version
script: script:
# only changed files this time # only changed files this time
- git diff --name-only $TRAVIS_BRANCH | grep '.*\.\(h\|c\|hpp\|cpp\)' | fgrep -v -f .astyleignore | xargs -n 100 -I {} bash -c "astyle -n --options=.astylerc \"{}\"" > astyle-files-changed.out; git diff --name-only --diff-filter=d $TRAVIS_BRANCH | grep '.*\.\(h\|c\|hpp\|cpp\)' | fgrep -v -f .astyleignore | xargs -n 100 -I {} bash -c "astyle -n --options=.astylerc \"{}\"" > astyle-files-changed.out;
if [ $(cat astyle-files-changed.out | grep Formatted | wc -l) -ne 0 ]; then if [ $(cat astyle-files-changed.out | grep Formatted | wc -l) -ne 0 ]; then
git --no-pager diff; git --no-pager diff;
echo ""; echo "";