aboutsummaryrefslogtreecommitdiffstats
path: root/composer.json
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2023-10-13 10:44:40 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2023-11-02 09:59:06 +0100
commit0da4c14cdfc43891d3ecc9e67a042333f4f66547 (patch)
treeb026290f89c75bdeb441c654362ea1aff68827db /composer.json
parent82f23fbfe140d179910df408d1e3124318b83e64 (diff)
downloadnextcloud-server-0da4c14cdfc43891d3ecc9e67a042333f4f66547.tar.gz
nextcloud-server-0da4c14cdfc43891d3ecc9e67a042333f4f66547.zip
refactor: Unify running a dev server (for automated testing)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'composer.json')
-rw-r--r--composer.json4
1 files changed, 4 insertions, 0 deletions
diff --git a/composer.json b/composer.json
index c73645f575c..dcbd908c026 100644
--- a/composer.json
+++ b/composer.json
@@ -60,6 +60,10 @@
"psalm": "psalm --no-cache --threads=$(nproc)",
"psalm:ci": "psalm --no-cache --threads=1",
"psalm:update-baseline": "psalm --no-cache --threads=$(nproc) --update-baseline",
+ "serve": [
+ "Composer\\Config::disableProcessTimeout",
+ "PHP_CLI_SERVER_WORKERS=${NEXTCLOUD_WORKERS:=4} php -S ${NEXTCLOUD_HOST:=localhost}:${NEXTCLOUD_PORT:=8080} -t ./"
+ ],
"test": "phpunit --configuration tests/phpunit-autotest.xml",
"test:db": "@composer run test -- --group DB,SLOWDB",
"test:files_external": "phpunit --configuration tests/phpunit-autotest-external.xml"