mirror of https://github.com/ARMmbed/mbed-os.git
travis: exclude deleted files for astyle.
parent
24213b4601
commit
f5ad355854
|
|
@ -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 "";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue