mirror of https://github.com/ARMmbed/mbed-os.git
travis: anchor grep for astyle
Should not pick up .cmake files (just .c files)pull/8751/head
parent
f5ad355854
commit
5299017553
|
@ -129,7 +129,7 @@ matrix:
|
|||
- astyle --version
|
||||
script:
|
||||
# only changed files this time
|
||||
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;
|
||||
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
|
||||
git --no-pager diff;
|
||||
echo "";
|
||||
|
|
Loading…
Reference in New Issue