-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from koriym/update-package
Update package and CI files
- Loading branch information
Showing
11 changed files
with
158 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
/vendor/ | ||
/build/ | ||
/.idea/ | ||
|
||
/composer.lock | ||
/phpunit.xml | ||
/.phpunit.result.cache | ||
/.php_cs.cache |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,68 @@ | ||
language: php | ||
|
||
os: linux | ||
|
||
dist: bionic | ||
|
||
php: | ||
- 7.2 | ||
- 7.3 | ||
- 7.4 | ||
|
||
cache: | ||
directories: | ||
- vendor | ||
- ./vendor | ||
- $HOME/.composer/cache | ||
|
||
before_install: | ||
- phpenv config-rm xdebug.ini || true | ||
- composer self-update | ||
|
||
install: | ||
- composer install | ||
|
||
before_script: | ||
|
||
script: | ||
- ./vendor/bin/phpunit --coverage-clover=coverage.clover | ||
- ./vendor/bin/phpunit; | ||
|
||
jobs: | ||
fast_finish: true | ||
allow_failures: | ||
- php: nightly | ||
include: | ||
- stage: Test | ||
name: Lowest dependencies | ||
php: 7.4 | ||
install: composer update --prefer-dist --prefer-lowest | ||
|
||
- stage: Test | ||
name: Nightly | ||
php: nightly | ||
install: composer update --ignore-platform-reqs | ||
|
||
- stage: Code Quality | ||
name: Code coverage | ||
php: 7.4 | ||
before_script: | ||
- pecl install pcov | ||
script: | ||
- ./vendor/bin/phpunit -v --coverage-clover ./build/logs/clover.xml --coverage-text | ||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) -cF php | ||
|
||
- stage: Code Quality | ||
name: Static analysis | ||
php: 7.4 | ||
install: composer global require --dev phpstan/phpstan ^0.12 vimeo/psalm ^3.11 phpmetrics/phpmetrics ^2.6 maglnet/composer-require-checker ^2.0 | ||
script: | ||
- ~/.composer/vendor/bin/phpstan analyse -c phpstan.neon --no-progress --no-interaction | ||
- ~/.composer/vendor/bin/psalm --show-info=false --shepherd | ||
- ~/.composer/vendor/bin/psalm -c psalm.compiler.xml --show-info=true | ||
- ~/.composer/vendor/bin/phpmetrics --exclude=Exception src | ||
- ~/.composer/vendor/bin/composer-require-checker check ./composer.json | ||
|
||
- stage: Code Quality | ||
name: Coding standards | ||
php: 7.4 | ||
install: composer global require --dev doctrine/coding-standard ^8.1 | ||
script: | ||
- ~/.composer/vendor/bin/phpcs --standard=./phpcs.xml src tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
codecov: | ||
notify: | ||
require_ci_to_pass: yes | ||
|
||
coverage: | ||
status: | ||
project: | ||
default: | ||
target: 100% | ||
patch: | ||
default: | ||
target: 100% | ||
|
||
comment: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.