-
Notifications
You must be signed in to change notification settings - Fork 2
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 #1 from remotelyliving/v2
Use PHP 7.4 Syntax, Cleanup
- Loading branch information
Showing
112 changed files
with
3,282 additions
and
3,471 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,4 +1,5 @@ | ||
composer.phar | ||
/vendor/ | ||
/coverage/ | ||
.idea | ||
|
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,19 @@ | ||
build: | ||
environment: | ||
php: | ||
version: '7.4.5' | ||
nodes: | ||
my-tests: | ||
environment: | ||
php: | ||
version: '7.4.5' | ||
cache: | ||
disabled: true | ||
|
||
dependencies: | ||
override: | ||
- composer install --ignore-platform-reqs --no-interaction | ||
|
||
build_failure_conditions: | ||
- 'elements.rating(<= B).new.exists' # No new classes/methods with a rating of C or worse allowed | ||
- 'project.metric_change("scrutinizer.test_coverage", < 0)' # Code Coverage decreased from previous inspection |
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,23 +1,24 @@ | ||
.PHONY: dependencies, unit-tests, test-coverage, style-check, dependency-check, static-analysis, style-fix | ||
build: | ||
@make dependencies && make dependency-check && make static-analysis && make style-check && make unit-tests | ||
|
||
dependencies: | ||
@composer install | ||
|
||
dependency-check: | ||
@vendor/bin/composer-require-checker check ./composer.json | ||
|
||
unit-tests: | ||
@vendor/bin/phpunit --bootstrap=./tests/bootstrap.php ./tests | ||
@vendor/bin/phpunit --bootstrap=./tests/bootstrap.php --testsuite Unit | ||
|
||
test-coverage: | ||
@vendor/bin/phpunit --coverage-html ./coverage | ||
|
||
style-check: | ||
@vendor/bin/phpcs --standard=PSR2 ./src/* ./tests/* | ||
@vendor/bin/phpcs --standard=PSR12 ./src/* ./tests/* | ||
|
||
coverage: | ||
@vendor/bin/phpunit --coverage-html ./tests/coverage | ||
dependency-check: | ||
@vendor/bin/composer-require-checker check -vvv ./composer.json | ||
|
||
static-analysis: | ||
@vendor/bin/phpstan analyze --level=max ./src | ||
@vendor/bin/phpstan analyze | ||
|
||
style-fix: | ||
@vendor/bin/phpcbf --standard=PSR2 ./src ./tests | ||
@vendor/bin/phpcbf --standard=PSR12 ./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
Oops, something went wrong.