Exclude deleted files from PHPCS tests
This commit is contained in:
parent
48d8f4f089
commit
0b3db09935
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue