diff --git a/.woodpecker/Build/composer.json b/.woodpecker/Build/composer.json deleted file mode 100644 index 5d1f074..0000000 --- a/.woodpecker/Build/composer.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "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/test.yml b/.woodpecker/test.yml index 8861184..cdf520b 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/test.yml @@ -1,7 +1,46 @@ +workspace: + base: /woodpecker + path: package + +matrix: + FLOW_VERSION: + - 4.3 + - 5.3 + pipeline: - build: - image: composer + functional-tests: + image: thecodingmachine/php:7.4-v4-cli + environment: + # Enable the PDO_SQLITE extension + - "PHP_EXTENSION_PDO_SQLITE=1" + - "FLOW_VERSION=${FLOW_VERSION}" + - "NEOS_BUILD_DIR=/woodpecker/Build-${FLOW_VERSION}" commands: - - cd .woodpecker/Build - - composer install - - bin/phpunit --configuration Build/BuildEssentials/PhpUnit/FunctionalTests.xml Packages/Application/DigiComp.SettingValidator/Tests/Functional + - "sudo mkdir $NEOS_BUILD_DIR" + - "sudo chown -R docker:docker $NEOS_BUILD_DIR" + - "cd $NEOS_BUILD_DIR" + - "if [ \"$FLOW_VERSION\" = \"4.3\" ]; then sudo composer self-update --1; fi" + - "composer create-project --no-install neos/flow-base-distribution:^$FLOW_VERSION ." + - "composer config repositories.repo-name path /woodpecker/package" + - "composer remove --dev neos/behat" + - "if [ \"$FLOW_VERSION\" = \"4.3\" ]; then composer require typo3fluid/fluid:2.4.3; fi" + - "composer require digicomp/settingvalidator:@dev" + - | + if [ "$FLOW_VERSION" = "4.3" ]; then + echo 'Neos: + Flow: + persistence: + backendOptions: + dbname: "flow_functional_testing" + error: + errorHandler: + exceptionalErrors: + 0: "%E_USER_ERROR%" + 1: "%E_RECOVERABLE_ERROR%" + 2: ~ + 3: "%E_NOTICE%" + 4: "%E_USER_WARNING%" + 5: "%E_USER_NOTICE%" + 6: "%E_STRICT%"' > Configuration/Testing/Settings.yaml + fi + - "bin/phpunit --configuration Build/BuildEssentials/PhpUnit/FunctionalTests.xml Packages/Application/DigiComp.SettingValidator/Tests/Functional"