From 6eb3dae8c382d5d39d77f803a24f7d8899648965 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Fri, 1 Jan 2021 11:13:51 +0100 Subject: [PATCH] Added dependency on composer parallel to speed-up dev commnds --- composer.json | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index e503edcb..9c82c6ed 100644 --- a/composer.json +++ b/composer.json @@ -72,7 +72,8 @@ "roave/security-advisories": "dev-master", "shlinkio/php-coding-standard": "~2.1.1", "shlinkio/shlink-test-utils": "^1.6", - "symfony/var-dumper": "^5.2" + "symfony/var-dumper": "^5.2", + "veewee/composer-run-parallel": "^0.1.0" }, "autoload": { "psr-4": { @@ -105,6 +106,10 @@ "@test:ci", "@infect:ci" ], + "ci:parallel": [ + "@parallel cs stan test:unit:ci test:db:sqlite:ci test:db:mysql test:db:maria test:db:postgres test:db:ms", + "@parallel test:api infect:ci:unit infect:ci:db" + ], "cs": "phpcs", "cs:fix": "phpcbf", "stan": "phpstan analyse module/*/src/ module/*/config config docker/config data/migrations --level=6", @@ -137,9 +142,11 @@ "test:unit:pretty": "@php vendor/bin/phpunit --order-by=random --colors=always --coverage-html build/coverage-unit-html", "infect": "infection --threads=4 --min-msi=80 --log-verbosity=default --only-covered", "infect:ci:base": "@infect --skip-initial-tests", + "infect:ci:unit": "@infect:ci:base --coverage=build/coverage-unit", + "infect:ci:db": "@infect:ci:base --coverage=build/coverage-db --min-msi=95 --test-framework-options=--configuration=phpunit-db.xml", "infect:ci": [ - "@infect:ci:base --coverage=build/coverage-unit", - "@infect:ci:base --coverage=build/coverage-db --test-framework-options=--configuration=phpunit-db.xml" + "@infect:ci:unit", + "@infect:ci:db" ], "infect:test": [ "@test:unit:ci",