Skip to content

Commit

Permalink
Workflow test
Browse files Browse the repository at this point in the history
  • Loading branch information
kenariosz committed Nov 14, 2024
1 parent 87afa66 commit 2e895b0
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 102 deletions.
97 changes: 12 additions & 85 deletions .github/oxid-esales/metapackage-7.1-slim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,105 +11,23 @@ install:
container:
options: '-e ESHOP_BOOTSTRAP_PATH=vendor/oxid-esales/oxideshop-ce/source/bootstrap.php'
composer:
root_url: 'https://raw.githubusercontent.com/{{ .Github.Repository }}/b-7.1/composer.json'
transform: |
{
"config": {
"github-protocols": ["https"],
"allow-plugins":{
"oxid-esales/oxideshop-composer-plugin":true,
"oxid-esales/oxideshop-unified-namespace-generator":true
}
},
"preferred-install": {
"oxid-esales/*": "source",
"oxid-professional-services/*": "source",
"ddoe/*": "source",
"makaira/*": "source"
},
"require": {
"composer/composer": "^2.0",
"twig/twig": "v3.8.0"
},
"require-dev":{
"oxid-esales/codeception-modules":"{{ .Data.global.composer.dev_ref }}",
"oxid-esales/codeception-page-objects":"{{ .Data.global.composer.dev_ref }}",
"oxid-esales/developer-tools":"{{ .Data.global.composer.dev_ref }}",
"oxid-esales/oxideshop-ide-helper":"{{ .Data.global.composer.dev_ref }}",
"codeception/codeception":"^5.0",
"codeception/module-asserts":"^3.0",
"codeception/module-db":"^3.0",
"codeception/module-filesystem":"^3.0",
"codeception/module-webdriver":"^4.0",
"composer/composer":"^2.0",
"incenteev/composer-parameter-handler":"^v2.1.4",
"mikey179/vfsstream":"~1.6.8",
"phpspec/prophecy-phpunit":"^v2.0.1",
"phpunit/phpunit":"^10.4",
"phpstan/phpstan": "^1.9.14",
"squizlabs/php_codesniffer":"^3.5.4"
},
"autoload-dev":{
"psr-4":{
"OxidEsales\\EshopCommunity\\Tests\\":"./vendor/oxid-esales/oxideshop-ce/tests",
"OxidEsales\\ComposerPlugin\\Tests\\": "vendor/oxid-esales/oxideshop-composer-plugin/tests/",
"OxidEsales\\UnifiedNameSpaceGenerator\\Tests\\": "./vendor/oxid-esales/oxideshop-unified-namespace-generator/tests",
"OxidEsales\\DemoDataInstaller\\Tests\\": "./vendor/oxid-esales/oxideshop-demodata-installer/tests/",
"OxidEsales\\DoctrineMigrationWrapper\\Tests\\": "./vendor/oxid-esales/oxideshop-doctrine-migration-wrapper/tests",
"OxidEsales\\Facts\\Tests\\": "./vendor/oxid-esales/oxideshop-facts/tests/",
"OxidEsales\\Twig\\Tests\\": "./vendor/oxid-esales/twig-component/tests",
"OxidEsales\\GdprOptinModule\\Tests\\": "./vendor/oxid-esales/gdpr-optin-module/tests/",
"OxidProfessionalServices\\Usercentrics\\Tests\\": "./vendor/oxid-professional-services/usercentrics/tests"
}
},
"bin":[
"bin/oe-console"
]
}
root_url: 'https://raw.githubusercontent.com/{{ .Github.Repository }}/b-7.1-workflow-test/composer.json'
transform: ''
activate_modules: |
oegdproptin
oxps_usercentrics
makaira_oxid-connect-essential
ddoemedialibrary
ddoewysiwyg
eyeable_assist
custom_script_container: |
# Activate all modules
if [ -f 'bin/oe-console' ]; then
OE_CONSOLE='bin/oe-console'
else
if [ -f 'vendor/bin/oe-console' ]; then
OE_CONSOLE='vendor/bin/oe-console'
else
error "Can't find oe-console in bin or vendor/bin!"
fi
fi
mkdir -p /var/www/vendor/oxid-esales/oxideshop-ce/vendor/oxid-esales
ln -s /var/www/vendor/oxid-esales/oxideshop-demodata-ce /var/www/vendor/oxid-esales/oxideshop-ce/vendor/oxid-esales/oxideshop-demodata-ce
cp /var/www/vendor/oxid-esales/oxideshop-ce/source/config.inc.php /var/www/source/config.inc.php
cp /var/www/vendor/oxid-esales/oxideshop-ce/source/config.inc.php /var/www/vendor/oxid-esales/gdpr-optin-module/source/config.inc.php
${OE_CONSOLE} oe:setup:demodata
runscript: &runscript
matrix:
script: |
[
"shop:~/unit.sh",
"shop:~/integration.sh",
"shop:~/codeception.sh",
"gdpr:~/unit.sh",
"gdpr:~/integration.sh",
"gdpr:~/codeception.sh",
"usercentrics:~/unit.sh",
"usercentrics:~/integration.sh",
"usercentrics:~/codeception.sh Acceptance",
"ddoe_wysiwyg:~/integration.sh",
"ddoe_wysiwyg:~/codeception.sh Acceptance",
"medialibrary:~/unit.sh",
"medialibrary:~/integration.sh",
"medialibrary:~/codeception.sh",
"eyeable:~/integration.sh",
"eyeable:~/codeception.sh"
"shop:~/codeception.sh"
]
container:
# {{ $selenium_options := "-e SELENIUM_SERVER_HOST=selenium -e BROWSER_NAME=chrome" }}
Expand All @@ -120,6 +38,15 @@ runscript: &runscript
workdir: ''
shop:
path: 'vendor/oxid-esales/oxideshop-ce'
container:
options:
-e SELENIUM_SERVER_HOST=selenium
-e BROWSER_NAME=chrome
-e XDEBUG_MODE=coverage
-e THEME_ID=apex
-e TEST_SUITE=/var/www/vendor/oxid-esales/oxideshop-ce/tests
-e MODULE_IDS=eyeable_assist,makaira_oxid-connect-essential,oxps_usercentrics,oegdproptin,ddoemedialibrary,ddoewysiwyg
-e CODECEPTION_OPTIONS="-x exclude_from_compilation -x exclude-from-compilation -x flow_theme"
gdpr:
path: 'vendor/oxid-esales/gdpr-optin-module'
usercentrics:
Expand Down
55 changes: 38 additions & 17 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
"composer/semver": "3.4.0",
"composer/spdx-licenses": "1.5.8",
"composer/xdebug-handler": "3.0.3",
"ddoe/wysiwyg-editor-module": "dev-b-7.1.x",
"ddoe/wysiwyg-editor-module": "v4.0.0",
"doctrine/cache": "2.2.0",
"doctrine/collections": "1.8.0",
"doctrine/dbal": "2.13.9",
"doctrine/deprecations": "1.1.3",
"doctrine/event-manager": "1.2.0",
"doctrine/migrations": "3.4.3",
"eyeable/eye-able-oxid": "v3.0.3",
"eyeable/eye-able-oxid": "v3.0.1",
"friendsofphp/proxy-manager-lts": "v1.0.16",
"intervention/gif": "4.0.2",
"intervention/image": "3.5.0",
Expand All @@ -35,20 +35,20 @@
"makaira/oxid-connect-essential": "2.1.2",
"makaira/shared-libs": "2022.2.4",
"monolog/monolog": "1.27.1",
"oxid-esales/apex-theme": "dev-b-7.1.x",
"oxid-esales/gdpr-optin-module": "dev-b-7.1.x",
"oxid-esales/media-library-module": "dev-b-7.1.x",
"oxid-esales/oxideshop-ce": "dev-b-7.1.x",
"oxid-esales/oxideshop-composer-plugin": "dev-b-7.1.x",
"oxid-esales/oxideshop-db-views-generator": "dev-b-7.1.x",
"oxid-esales/oxideshop-demodata-ce": "dev-b-7.1.x",
"oxid-esales/oxideshop-demodata-installer": "dev-b-7.1.x",
"oxid-esales/oxideshop-doctrine-migration-wrapper": "dev-b-7.1.x",
"oxid-esales/oxideshop-facts": "dev-b-7.1.x",
"oxid-esales/oxideshop-unified-namespace-generator": "dev-b-7.1.x",
"oxid-esales/twig-admin-theme": "dev-b-7.1.x",
"oxid-esales/twig-component": "dev-b-7.1.x",
"oxid-professional-services/usercentrics": "dev-b-7.1.x",
"oxid-esales/apex-theme": "v1.3.0",
"oxid-esales/gdpr-optin-module": "v4.0.0",
"oxid-esales/media-library-module": "v1.0.0",
"oxid-esales/oxideshop-ce": "v7.1.0",
"oxid-esales/oxideshop-composer-plugin": "v7.2.0",
"oxid-esales/oxideshop-db-views-generator": "v2.2.0",
"oxid-esales/oxideshop-demodata-ce": "v8.0.1",
"oxid-esales/oxideshop-demodata-installer": "v3.2.0",
"oxid-esales/oxideshop-doctrine-migration-wrapper": "v5.2.0",
"oxid-esales/oxideshop-facts": "v4.2.0",
"oxid-esales/oxideshop-unified-namespace-generator": "v5.0.0",
"oxid-esales/twig-admin-theme": "v2.4.0",
"oxid-esales/twig-component": "v2.4.0",
"oxid-professional-services/usercentrics": "v3.0.0",
"phpmailer/phpmailer": "v6.9.1",
"psr/cache": "3.0.0",
"psr/container": "1.1.2",
Expand Down Expand Up @@ -91,5 +91,26 @@
"symfony/yaml": "v6.4.3",
"twig/twig": "v3.8.0",
"webmozart/glob": "4.7.0"
},
"require-dev":{
"codeception/codeception": "^5.0",
"codeception/module-asserts": "^3.0",
"codeception/module-db": "^3.0",
"codeception/module-filesystem": "^3.0",
"codeception/module-webdriver": "^4.0",
"incenteev/composer-parameter-handler": "^v2.1.4",
"mikey179/vfsstream": "~1.6.8",
"oxid-esales/codeception-modules": "^v4.0.0",
"oxid-esales/codeception-page-objects": "^v4.4.0",
"oxid-esales/developer-tools": "^v2.4.0",
"oxid-esales/oxideshop-ide-helper": "v6.2.0",
"phpspec/prophecy-phpunit": "^v2.0.1",
"phpunit/phpunit": "^10.4",
"squizlabs/php_codesniffer": "^3.5.4"
},
"autoload-dev":{
"psr-4":{
"OxidEsales\\EshopCommunity\\Tests\\":"./vendor/oxid-esales/oxideshop-ce/tests"
}
}
}
}

0 comments on commit 2e895b0

Please sign in to comment.