diff --git a/.woodpecker/Build/composer.json b/.woodpecker/Build/composer.json new file mode 100644 index 0000000..5d1f074 --- /dev/null +++ b/.woodpecker/Build/composer.json @@ -0,0 +1,29 @@ +{ + "name": "digicomp/settingvalidator-distribution", + "description": "SettingValidator Distribution", + "config": { + "vendor-dir": "Packages/Libraries", + "bin-dir": "bin", + "platform": { + "php": "7.4.0" + } + }, + "require": { + "digicomp/settingvalidator": "*@dev", + "php": "~7.4.0" + }, + "require-dev": { + "neos/buildessentials": "^5.3", + "phpunit/phpunit": "~8.1", + "mikey179/vfsstream": "~1.6" + }, + "repositories": [ + { "type": "path", "url": "../../../src" } + ], + "scripts": { + "post-update-cmd": "Neos\\Flow\\Composer\\InstallerScripts::postUpdateAndInstall", + "post-install-cmd": "Neos\\Flow\\Composer\\InstallerScripts::postUpdateAndInstall", + "post-package-update": "Neos\\Flow\\Composer\\InstallerScripts::postPackageUpdateAndInstall", + "post-package-install": "Neos\\Flow\\Composer\\InstallerScripts::postPackageUpdateAndInstall" + } +} diff --git a/.woodpecker/code-style.yml b/.woodpecker/code-style.yml index 8124b8f..453df4b 100644 --- a/.woodpecker/code-style.yml +++ b/.woodpecker/code-style.yml @@ -4,4 +4,4 @@ pipeline: commands: - composer global config repositories.repo-name vcs https://git.digital-competence.de/Packages/php-codesniffer - composer global require digicomp/php-codesniffer:@dev - - composer global exec -- phpcs --standard=DigiComp . + - composer global exec -- phpcs --runtime-set ignore_warnings_on_exit 1 --standard=DigiComp Classes/ Migrations/ Tests/ Resources/Private/ diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml new file mode 100644 index 0000000..8861184 --- /dev/null +++ b/.woodpecker/test.yml @@ -0,0 +1,7 @@ +pipeline: + build: + image: composer + commands: + - cd .woodpecker/Build + - composer install + - bin/phpunit --configuration Build/BuildEssentials/PhpUnit/FunctionalTests.xml Packages/Application/DigiComp.SettingValidator/Tests/Functional