diff --git a/composer.json b/composer.json index 31a812d95..512078995 100644 --- a/composer.json +++ b/composer.json @@ -12,16 +12,21 @@ "require": { "composer/installers": "^2.1", "cweagans/composer-patches": "^1.7", + "drupal/admin_toolbar": "^3.0", + "drupal/config_split": "^1.7", "drupal/core-composer-scaffold": "^10.2.0", "drupal/core-recommended": "^10.2.0", + "drupal/gin": "^3.0@alpha", "drush/drush": "^12.4.3", - "oomphinc/composer-installers-extender": "^2.0", "vlucas/phpdotenv": "^5.1", "webflo/drupal-finder": "^1.3" }, "require-dev": { "drupal/core-dev": "^10.2.0", - "ergebnis/composer-normalize": "^2.42" + "ergebnis/composer-normalize": "^2.42", + "mglaman/drupal-check": "^1.2", + "phpcompatibility/php-compatibility": "^9.3", + "zaporylie/composer-drupal-optimizations": "^1.2" }, "conflict": { "drupal/drupal": "*" @@ -124,6 +129,38 @@ ], "post-update-cmd": [ "DrupalProject\\composer\\ScriptHandler::createRequiredFiles" + ], + "build": [ + "drush site:install minimal --existing-config --db-url=mysql://root:password@mariadb:3306/drupal -y", + "drush cr", + "drush scr web/modules/custom/pmis_tests/scripts/install_test_users.php", + "drush scr web/modules/custom/pmis_tests/scripts/install_test_content.php" + ], + "run_tests": [ + "mkdir -p /tmp/b2b", + "phpunit -c /var/www/html/drupal/phpunit.xml" + ], + "run_single_test_class": [ + "mkdir -p /tmp/b2b", + "phpunit -c /var/www/html/drupal/phpunit.xml web/modules/custom/awpid_core/tests/src/Functional/EventsAndParticipantsTest.php" + ], + "php_compatibility": [ + "phpcs --config-set installed_paths /var/www/html/drupal/vendor/phpcompatibility/php-compatibility/PHPCompatibility", + "phpcs -p --standard=PHPCompatibility --extensions=php,inc,module,install --runtime-set testVersion 7.4 /var/www/html/drupal/web/modules/custom", + "phpcs -p --standard=PHPCompatibility --extensions=php,inc,theme,install --runtime-set testVersion 7.4 /var/www/html/drupal/web/themes/custom" + ], + "coding_standards": [ + "phpcs --config-set installed_paths /var/www/html/drupal/vendor/drupal/coder/coder_sniffer", + "phpcs --standard=Drupal --extensions=php,module,inc,install /var/www/html/drupal/web/modules/custom", + "phpcs --standard=Drupal /var/www/html/drupal/web/themes/custom --ignore=*/node_modules/*,*.css,*.js,includes/*" + ], + "coding_standards_fix": [ + "phpcs --config-set installed_paths /var/www/html/drupal/vendor/drupal/coder/coder_sniffer", + "phpcbf --report=diff --extensions=php,module,inc,install --standard=Drupal /var/www/html/drupal/web/modules/custom", + "phpcbf --report=diff --standard=Drupal /var/www/html/drupal/web/themes/custom --ignore=*/node_modules/*,*.css,*.js,includes/*" + ], + "drupal_check": [ + "drupal-check /var/www/html/drupal/web/*/custom" ] } }