From 2f6a8a2cc03ef23073a361a39ebee3a3fa1ba3fb Mon Sep 17 00:00:00 2001 From: Cruz Monrreal II Date: Tue, 18 Dec 2018 16:04:39 -0600 Subject: [PATCH] Skip files that were deleted --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 783c193eb6..caeb9d5395 100644 --- a/.travis.yml +++ b/.travis.yml @@ -141,10 +141,10 @@ matrix: - astyle --version script: - >- - git diff --name-only HEAD..${TRAVIS_BRANCH} \ + git diff --name-only --diff-filter=d HEAD..${TRAVIS_BRANCH} \ | ( grep '.\(c\|cpp\|h\|hpp\)$' || true ) \ | while read file; do astyle -n --options=.astylerc "${file}"; done - - git diff --exit-code --color + - git diff --exit-code --diff-filter=d --color - env: - NAME=events