feature/drone-ci-tests #1

Merged
fkuhl merged 4 commits from :feature/drone-ci-tests into feature/drone-ci-tests 2022-04-30 18:36:20 +02:00
2 changed files with 24 additions and 34 deletions
Showing only changes of commit 25d5a3c21f - Show all commits

View file

@ -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"
}
}

View file

@ -1,7 +1,26 @@
workspace:
base: /woodpecker
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
- 5.3
pipeline: pipeline:
build: functional-tests:
image: composer image: thecodingmachine/php:7.4-v4-cli
environment:
# Enable the PDO_SQLITE extension
- "PHP_EXTENSION_PDO_SQLITE=1"
- "NEOS_VERSION=${NEOS_VERSION}"
- "NEOS_BUILD_DIR=/woodpecker/Build-$NEOS_VERSION"
commands: commands:
- cd .woodpecker/Build - "sudo mkdir $NEOS_BUILD_DIR"
- composer install - "sudo chown -R docker:docker $NEOS_BUILD_DIR"
- bin/phpunit --configuration Build/BuildEssentials/PhpUnit/FunctionalTests.xml Packages/Application/DigiComp.SettingValidator/Tests/Functional - "cd $NEOS_BUILD_DIR"
- "composer create-project --no-install neos/flow-base-distribution:^$NEOS_VERSION ."
- "composer config repositories.repo-name path /woodpecker/package"
- "composer remove --dev neos/behat"
- "composer require digicomp/settingvalidator:@dev"
- "bin/phpunit --configuration Build/BuildEssentials/PhpUnit/FunctionalTests.xml Packages/Application/DigiComp.SettingValidator/Tests/Functional"