build(installer): 引入更多脚本

This commit is contained in:
李东云
2023-04-10 17:23:18 +08:00
parent cd9c87eee9
commit ed22d562c7

View File

@@ -21,7 +21,7 @@
},
"pre-push": [
"echo committing as $(git config user.name)",
"docker run --rm -t -v \"$(pwd)\":/srv/www harbor.luxcreo.cn/library/hyperf:8.0-swoole composer ci"
"docker run --rm -t -v \"$(pwd)\":/srv/www harbor.luxcreo.cn/library/hyperf:8.1-swoole composer ci"
]
}
},
@@ -64,6 +64,8 @@
"scripts": {
"pre-install-cmd": "Installer\\Script::install",
"pre-update-cmd": "Installer\\Script::install",
"post-install-cmd": "cghooks add --ignore-lock",
"post-update-cmd": "cghooks update",
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
@@ -76,12 +78,17 @@
"co-phpunit --prepend test/bootstrap.php -c phpunit.xml --colors=always"
],
"cs-fix": "vendor/bin/php-cs-fixer fix $1 --rules=@PSR12 --allow-risky=yes",
"analyse": "vendor/bin/phpstan analyse -l 0 $1",
"analyse": "vendor/bin/phpstan analyse $1",
"ci": [
"@analyse app/ test/",
"@cs-fix",
"@test",
"echo CI Success"
],
"start": [
"rm -rf runtime",
"Composer\\Config::disableProcessTimeout",
"php ./bin/hyperf.php start"
]
},
"repositories": {