mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-05 20:57:12 +00:00
refactor #13897 [docker]Run Catalog Promotion via SYNC messenger transport (Ferror)
This PR was merged into the master branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | 1.10, 1.11 or master <!-- see the comment below --> | Bug fix? | no/yes | New feature? | no/yes | BC breaks? | no/yes | Deprecations? | no/yes <!-- don't forget to update the UPGRADE-*.md file --> | Related tickets | fixes #X, partially #Y, mentioned in #Z | License | MIT <!-- - Bug fixes must be submitted against the 1.10 or 1.11 branch(the lowest possible) - Features and deprecations must be submitted against the master branch - Make sure that the correct base branch is set To be sure you are not breaking any Backward Compatibilities, check the documentation: https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html --> Commits -------8335dbc[docker]Run Catalog Promotion via SYNC messenger transportfc21e98use test_cached environment8264470specify KernelClassc367c2ecomposer dump env
This commit is contained in:
commit
e34578a114
4 changed files with 11 additions and 7 deletions
|
|
@ -7,7 +7,7 @@ date.timezone=${PHP_DATE_TIMEZONE}
|
|||
[opcache]
|
||||
opcache.enable=1
|
||||
opcache.enable_cli=0
|
||||
opcache.memory_consumption=256
|
||||
opcache.memory_consumption=512
|
||||
opcache.max_accelerated_files=32531
|
||||
opcache.interned_strings_buffer=8
|
||||
opcache.validate_timestamps=0
|
||||
|
|
|
|||
5
.github/workflows/docker.yml
vendored
5
.github/workflows/docker.yml
vendored
|
|
@ -5,7 +5,7 @@ on:
|
|||
|
||||
jobs:
|
||||
docker-compose:
|
||||
name: Excute Tests on Docker Compose
|
||||
name: Execute Tests on Docker Compose
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
COMPOSE_FILE: docker-compose.test.yml
|
||||
|
|
@ -18,7 +18,7 @@ jobs:
|
|||
run: docker-compose run ci
|
||||
|
||||
docker:
|
||||
name: Excute Tests on Docker Containers
|
||||
name: Execute Tests on Docker Containers
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
|
|
@ -48,6 +48,7 @@ jobs:
|
|||
-e DATABASE_URL="mysql://root@mysql/sylius_test" \
|
||||
-e APP_ENV="test" \
|
||||
-e PHP_DATE_TIMEZONE="Europe/Warsaw" \
|
||||
-e MESSENGER_TRANSPORT_DSN="sync://" \
|
||||
--net sylius_network \
|
||||
--entrypoint="" \
|
||||
-p 80:80/tcp \
|
||||
|
|
|
|||
7
Makefile
7
Makefile
|
|
@ -7,6 +7,7 @@ init:
|
|||
|
||||
ci:
|
||||
composer install --no-interaction --no-scripts
|
||||
composer dump-env ${APP_ENV}
|
||||
bin/console sylius:install --no-interaction
|
||||
bin/console sylius:fixtures:load default --no-interaction
|
||||
bin/console cache:warmup
|
||||
|
|
@ -14,9 +15,9 @@ ci:
|
|||
yarn build
|
||||
vendor/bin/phpunit
|
||||
vendor/bin/phpspec run --ansi --no-interaction -f dot
|
||||
vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@javascript&&@cli&&~@todo" # CLI Behat
|
||||
vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@cli&&~@todo" # NON JS Behat
|
||||
#vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="@javascript&&~@cli&&~@todo" # JS Behat
|
||||
vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="~@javascript&&@cli&&~@todo" || vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="~@javascript&&@cli&&~@todo" --rerun # CLI Behat
|
||||
vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@cli&&~@todo" || vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@cli&&~@todo" --rerun # NON JS Behat
|
||||
#vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="@javascript&&~@cli&&~@todo" # JS Behat
|
||||
|
||||
unit:
|
||||
vendor/bin/phpunit
|
||||
|
|
|
|||
|
|
@ -3,9 +3,11 @@ services:
|
|||
image: sylius/standard:1.11-traditional
|
||||
entrypoint: ["make", "ci"]
|
||||
environment:
|
||||
APP_ENV: "test"
|
||||
APP_ENV: "test_cached"
|
||||
DATABASE_URL: "mysql://root:mysql@mysql/sylius_test"
|
||||
PHP_DATE_TIMEZONE: "Europe/Warsaw"
|
||||
MESSENGER_TRANSPORT_DSN: "sync://"
|
||||
KERNEL_CLASS: "App\Kernel"
|
||||
volumes:
|
||||
- ./:/app:delegated
|
||||
- ./.docker/test/php.ini:/etc/php/8.0/fpm/php.ini:delegated
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue