Skip to content

Commit

Permalink
support php8 attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
kuma-guy committed May 30, 2022
1 parent d173693 commit 41e6ab7
Show file tree
Hide file tree
Showing 37 changed files with 5,040 additions and 547 deletions.
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/vendor/
/vendor-bin/*/vendor/
/build/
/.idea/

/composer.lock
/phpunit.xml
/.php_cs.cache
/.phpunit.result.cache
.DS_Store
/.phpcs-cache
/coverage.xml
185 changes: 0 additions & 185 deletions .php_cs.dist

This file was deleted.

26 changes: 11 additions & 15 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
filter:
paths: ["src/*"]
paths: ["src/*"]

tools:
external_code_coverage: true
php_code_coverage: true
php_sim: true
php_pdepend: true
php_analyzer: true
php_cpd: true
php_mess_detector:
enabled: true
config:
ruleset: ./phpmd.xml
php_code_sniffer:
enabled: true
config:
ruleset: ./phpcs.xml
php_sim: true
php_pdepend: true
php_analyzer: true
build:
nodes:
analysis:
tests:
override:
- php-scrutinizer-run --enable-security-analysis
57 changes: 0 additions & 57 deletions .travis.yml

This file was deleted.

14 changes: 14 additions & 0 deletions codecov.yml
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
68 changes: 46 additions & 22 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,16 @@
}
],
"require": {
"php": "^7.3 || ^8.0",
"auth0/auth0-php": "^7.0",
"ray/di": "^2.7.1",
"ray/di": "^2.12",
"ray/aura-web-module": "^0.1.0",
"koriym/http-constants": "^1.1",
"josegonzalez/dotenv": "^3.2"
},
"require-dev": {
"phpunit/phpunit": "^8.5",
"squizlabs/php_codesniffer": "^3.2",
"friendsofphp/php-cs-fixer": "^2.11",
"phpmd/phpmd": "^2.6",
"ray/di": "^2.10|2.x-dev",
"doctrine/annotations": "^1.8",
"phpstan/phpstan": "^0.12.5"
"bamarni/composer-bin-plugin": "^1.4",
"phpunit/phpunit": "^9.5"
},
"autoload": {
"psr-4": {
Expand All @@ -37,24 +33,52 @@
}
},
"scripts": {
"test": [
"vendor/bin/phpunit"
"setup": "php bin/setup.php",
"test": "./vendor/bin/phpunit",
"coverage": "php -dzend_extension=xdebug.so -dxdebug.mode=coverage ./vendor/bin/phpunit --coverage-text --coverage-html=build/coverage",
"pcov": "php -dextension=pcov.so -d pcov.enabled=1 ./vendor/bin/phpunit --coverage-text --coverage-html=build/coverage --coverage-clover=coverage.xml",
"cs": "./vendor/bin/phpcs",
"cs-fix": "./vendor/bin/phpcbf src tests",
"metrics": "./vendor/bin/phpmetrics --report-html=build/metrics --exclude=Exception src",
"clean": [
"./vendor/bin/phpstan clear-result-cache",
"./vendor/bin/psalm --clear-cache"
],
"sa": [
"psalm --show-info=true",
"./vendor/bin/phpstan analyse -c phpstan.neon"
],
"tests": [
"@cs",
"@test",
"vendor/bin/phpstan analyse -l max src -c phpstan.neon --no-progress"
],
"coverage": [
"php -dzend_extension=xdebug.so ./vendor/bin/phpunit --coverage-text --coverage-html=build/coverage"
"@sa",
"@test"
],
"cs": [
"vendor/bin/php-cs-fixer fix -v --dry-run",
"vendor/bin/phpcs --standard=phpcs.xml src;"
"build": [
"@clean",
"@cs",
"@sa",
"@pcov",
"@metrics"
],
"cs-fix": [
"vendor/bin/php-cs-fixer fix -v",
"vendor/bin/phpcbf src tests"
]
"post-install-cmd": "@composer bin all install --ansi",
"post-update-cmd": "@composer bin all update --ansi"
},
"scripts-descriptions": {
"test": "Run unit tests",
"coverage": "Generate test coverage report",
"pcov": "Generate test coverage report (pcov)",
"cs": "Check the coding style",
"cs-fix": "Fix the coding style",
"clean": "Delete tmp files",
"sa": "Run static analysis",
"metrics": "Build metrics report",
"tests": "Run tests and quality checks",
"build": "Build project"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"bamarni/composer-bin-plugin": true
}
}
}
Loading

0 comments on commit 41e6ab7

Please sign in to comment.