Skip to content

Commit

Permalink
Updated Installer tests and added Rector.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Jan 14, 2024
1 parent eaa3078 commit 5fd90b1
Show file tree
Hide file tree
Showing 16 changed files with 587 additions and 4,060 deletions.
6 changes: 5 additions & 1 deletion .drevops/installer/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.build
/.build
/.coverage-html
/.phpunit.cache
/cobertura.xml
/composer.lock
/vendor
/vendor-bin
35 changes: 21 additions & 14 deletions .drevops/installer/composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "drevops/installer",
"type": "library",
"description": "Provides installer functionality.",
"description": "Provides DrevOps installer functionality.",
"license": "GPL-2.0-or-later",
"authors": [
{
Expand All @@ -17,16 +17,19 @@
"source": "https://github.com/drevops/drevops"
},
"require": {
"php": ">=8.2",
"symfony/console": "^6.3"
"php": ">=8.1",
"symfony/console": "^6.3 || ^7"
},
"require-dev": {
"phpunit/phpunit": "^10",
"bamarni/composer-bin-plugin": "^1.8",
"dealerdirect/phpcodesniffer-composer-installer": "^1",
"drupal/coder": "^8.3",
"mikey179/vfsstream": "^1.6",
"opis/closure": "^3.6",
"phpmd/phpmd": "^2.13",
"phpstan/phpstan": "^1.10",
"bamarni/composer-bin-plugin": "^1.8"
"phpunit/phpunit": "^10",
"rector/rector": "^0.19.0"
},
"autoload": {
"psr-4": {
Expand All @@ -43,24 +46,28 @@
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"bamarni/composer-bin-plugin": true
"bamarni/composer-bin-plugin": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"scripts": {
"lint": [
"phpcs",
"phpmd --exclude vendor,node_modules . text phpmd.xml || true",
"phpstan"
"phpstan",
"rector --dry-run"
],
"lint-fix": [
"rector --clear-cache",
"phpcbf"
],
"lint-fix": "phpcbf",
"test": "phpunit tests/phpunit/unit",
"test": "if [ \"${XDEBUG_MODE}\" = 'coverage' ]; then phpunit; else phpunit --no-coverage; fi",
"build": [
"@composer bin box require --dev humbug/box",
"box validate",
"box compile",
"ls -al .build/install.phar"
"box compile"
]
},
"bin": ["install"]
"bin": [
"install"
]
}
Loading

0 comments on commit 5fd90b1

Please sign in to comment.