From 0b3db099358f53601db7543f0d1132f90d06e9c3 Mon Sep 17 00:00:00 2001 From: Ben Thomson Date: Tue, 10 Sep 2019 17:42:04 +0800 Subject: [PATCH] Exclude deleted files from PHPCS tests --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 523415a45..00e504a71 100644 --- a/.travis.yml +++ b/.travis.yml @@ -46,8 +46,8 @@ jobs: php: 7.1 script: - git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" && git fetch - - ./vendor/bin/phpcs --colors -nq --report="full" --extensions="php" $(git diff --name-only HEAD origin/$TRAVIS_BRANCH) + - ./vendor/bin/phpcs --colors -nq --report="full" --extensions="php" $(git diff --name-only --diff-filter=ACMR HEAD origin/$TRAVIS_BRANCH) - stage: code quality if: type = push AND (branch = develop OR branch = master) php: 7.1 - script: ./vendor/bin/phpcs --colors -nq --report="full" --extensions="php" $(git show --name-only --pretty="" $TRAVIS_COMMIT) + script: ./vendor/bin/phpcs --colors -nq --report="full" --extensions="php" $(git show --name-only --pretty="" --diff-filter=ACMR $TRAVIS_COMMIT)