From 6ca2072ae6cf8049a77c00cd31f84109f846bd79 Mon Sep 17 00:00:00 2001 From: Ferdinand Kuhl Date: Sat, 30 Apr 2022 18:16:17 +0200 Subject: [PATCH] Adding Flow 4.3 build --- .woodpecker/test.yml | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml index 1e7f30e..87cf516 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/test.yml @@ -3,8 +3,8 @@ workspace: path: package matrix: - NEOS_VERSION: - # - 4.3 not possible, because 4.3 does not run work with composer 2 - we had to install an older version of composer, too + FLOW_VERSION: + - 4.3 - 5.3 pipeline: @@ -13,14 +13,35 @@ pipeline: environment: # Enable the PDO_SQLITE extension - "PHP_EXTENSION_PDO_SQLITE=1" - - "NEOS_VERSION=${NEOS_VERSION}" - - "NEOS_BUILD_DIR=/woodpecker/Build-$NEOS_VERSION" + - "FLOW_VERSION=${FLOW_VERSION}" + - "NEOS_BUILD_DIR=/woodpecker/Build-${FLOW_VERSION}" commands: - "sudo mkdir $NEOS_BUILD_DIR" - "sudo chown -R docker:docker $NEOS_BUILD_DIR" - "cd $NEOS_BUILD_DIR" - - "composer create-project --no-install neos/flow-base-distribution:^$NEOS_VERSION ." + - "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 + - "cat Configuration/Testing/Settings.yaml" - "bin/phpunit --configuration Build/BuildEssentials/PhpUnit/FunctionalTests.xml Packages/Application/DigiComp.SettingValidator/Tests/Functional"