mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #9346 from cmonr/astyle_in_branch-fix
Travis CI: Corrected astyle job behavior with non-master base branch PRspull/9323/merge
commit
c3077d2053
|
@ -144,9 +144,12 @@ matrix:
|
|||
export PATH=$PWD/bin:$PATH;
|
||||
cd -
|
||||
- astyle --version
|
||||
# Fetch remaining information needed for branch comparison
|
||||
- git fetch --all --unshallow --tags
|
||||
- git fetch origin "${TRAVIS_BRANCH}"
|
||||
script:
|
||||
- >-
|
||||
git diff --name-only --diff-filter=d HEAD..${TRAVIS_BRANCH} \
|
||||
git diff --name-only --diff-filter=d FETCH_HEAD..HEAD \
|
||||
| ( grep '.\(c\|cpp\|h\|hpp\)$' || true ) \
|
||||
| ( fgrep -v -f .astyleignore || true ) \
|
||||
| while read file; do astyle -n --options=.astylerc "${file}"; done
|
||||
|
|
Loading…
Reference in New Issue