Exclude deleted files from PHPCS tests

This commit is contained in:
Ben Thomson 2019-09-10 17:42:04 +08:00
parent 48d8f4f089
commit 0b3db09935
No known key found for this signature in database
GPG Key ID: BD1BF04E944DBD80
1 changed files with 2 additions and 2 deletions

View File

@ -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)