mirror of
http://124.126.16.154:8888/singularity/hdk-skeleton.git
synced 2026-01-15 05:35:07 +08:00
build(installer): 引入更多脚本
This commit is contained in:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user