Skip to content

Commit

Permalink
Use composer-bin-plugin (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
villfa authored Dec 9, 2020
1 parent 071f721 commit c6e59a6
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 20 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ phpmd.xml export-ignore
phpunit.xml.dist export-ignore
README.md export-ignore
tests/ export-ignore
vendor-bin/ export-ignore
5 changes: 0 additions & 5 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,8 @@ jobs:
tools: composer:v2

- name: "Install dependencies"
if: "matrix.php-version != '8.0'"
run: "composer update --no-interaction --no-progress --prefer-dist"

- name: "Install dependencies ignoring PHP requirement"
if: "matrix.php-version == '8.0'"
run: "composer update --no-interaction --no-progress --prefer-dist --ignore-platform-req=php"

- name: "Run tests"
run: "vendor/bin/simple-phpunit --colors=always --testdox"

Expand Down
20 changes: 11 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
build
composer.lock
docs
vendor
coverage.xml
box.json
phpunit.xml
/box.json
/build/
/composer.lock
/coverage.xml
/docs/
/phpunit.xml
/vendor/
/vendor-bin/**/vendor
/vendor-bin/**/composer.lock
*.phar
.phpunit.result.cache
.idea
/.idea/
/.phpunit.result.cache
15 changes: 9 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,10 @@
"webmozart/assert": "^1.2"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.4",
"bmitch/codor": "^1.2",
"mockery/mockery": "^1.2.0",
"php-parallel-lint/php-console-highlighter": "^0.5.0",
"php-parallel-lint/php-parallel-lint": "^1.2",
"phploc/phploc": ">=4.0",
"phpmd/phpmd": "^2.5",
"sebastian/phpcpd": "^4.0",
"slevomat/coding-standard": "^3.0",
"slevomat/coding-standard": ">=3.0",
"symfony/phpunit-bridge": "^5.1"
},
"config": {
Expand All @@ -50,6 +46,13 @@
"bin/churn"
],
"scripts": {
"post-install-cmd": [
"@composer bin all install --ansi"
],
"post-update-cmd": [
"@composer bin all update --ansi"
],
"bin": "echo 'bin not installed'",
"fix": [
"phpcbf -n --standard=phpcs.xml src/",
"phpcbf --standard=codor.xml src -spn",
Expand Down
6 changes: 6 additions & 0 deletions vendor-bin/php-parallel-lint/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"require": {
"php-parallel-lint/php-console-highlighter": "^0.5.0",
"php-parallel-lint/php-parallel-lint": "^1.2"
}
}
5 changes: 5 additions & 0 deletions vendor-bin/phpcpd/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"sebastian/phpcpd": ">=4.0"
}
}
5 changes: 5 additions & 0 deletions vendor-bin/phploc/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"phploc/phploc": ">=4.0"
}
}
5 changes: 5 additions & 0 deletions vendor-bin/phpmd/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"phpmd/phpmd": "^2.5"
}
}

0 comments on commit c6e59a6

Please sign in to comment.