updating ci configuration with own plugins
Some checks failed
ci/woodpecker/push/functional-tests/2 Pipeline failed
ci/woodpecker/push/functional-tests/1 Pipeline failed
ci/woodpecker/push/code-style Pipeline was successful
ci/woodpecker/push/functional-tests/3 Pipeline failed
ci/woodpecker/push/functional-tests/4 Pipeline failed

This commit is contained in:
Ferdinand Kuhl 2024-06-04 20:59:39 +02:00
parent baf5636bd3
commit 33bfe85e56
2 changed files with 13 additions and 28 deletions

View file

@ -1,10 +1,7 @@
steps:
code-style:
image: composer
commands:
- composer global config repositories.repo-name vcs https://git.digital-competence.de/Packages/php-codesniffer
- composer global config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
- composer global require digicomp/php-codesniffer:@dev
- composer global exec -- phpcs --runtime-set ignore_warnings_on_exit 1 --standard=DigiComp Classes/ Tests/
image: git.digital-competence.de/woodpecker-ci/plugin-phpcs
settings:
args: Classes/ Tests/
when:
- event: [push, pull_request, manual]

View file

@ -15,28 +15,16 @@ matrix:
steps:
functional-tests:
image: "thecodingmachine/php:${PHP_VERSION}-v4-cli"
environment:
COMPOSER_HOME: /usr/src/app/.composer
HOSTKEY_DIGICOMP: digital-competence.de ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNSjVKJ+SO6wqmDSCgcJDk2ljWlD7qajsTxAuvZpTbJBg2++Zu0VxH0S1WzPVTD/D5UUbK6LVy6YSCnGlv6zmc0=
REPOKEY:
image: git.digital-competence.de/woodpecker-ci/plugin-phpunit-flow:${PHP_VERSION}
settings:
flow_version: ${FLOW_VERSION}
ssh_key:
from_secret: deploykey
PHP_EXTENSION_PDO_SQLITE: 1
NEOS_BUILD_DIR: /woodpecker/Build-${FLOW_VERSION}
commands:
- export HOME=/home/docker
- echo "$REPOKEY" > ~/.ssh/id_rsa
- echo "$HOSTKEY_DIGICOMP" > ~/.ssh/known_hosts
- chmod 600 ~/.ssh/id_rsa
- 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:^$FLOW_VERSION .
- composer config repositories.repo-name path /woodpecker/package
- composer config repositories.fluid-render-functions vcs ssh://git@digital-competence.de/Packages/DigiComp.FluidRenderFunctions
- composer remove --dev --no-update neos/behat || composer remove --no-update neos/behat
- composer require digicomp/fluid-render-functions:@dev
- composer require digicomp/fluid-json-views:@dev
- bin/phpunit --configuration Build/BuildEssentials/PhpUnit/FunctionalTests.xml Packages/Application/DigiComp.FluidJsonViews/Tests/Functional
hostkeys:
- digital-competence.de ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNSjVKJ+SO6wqmDSCgcJDk2ljWlD7qajsTxAuvZpTbJBg2++Zu0VxH0S1WzPVTD/D5UUbK6LVy6YSCnGlv6zmc0=
repositories:
- vcs ssh://git@digital-competence.de/Packages/DigiComp.FluidRenderFunctions
require:
- digicomp/fluid-render-functions:@dev
when:
- event: [ push, pull_request, manual ]