-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from mad-coders/feature/10
[FEATURE] Make it compatible with Sylius 1.12 (resolves #10)
- Loading branch information
Showing
74 changed files
with
511 additions
and
341 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
user www-data; | ||
worker_processes auto; | ||
daemon off; | ||
pid /run/nginx.pid; | ||
|
||
include /etc/nginx/modules-enabled/*.conf; | ||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
http { | ||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
|
||
server_tokens off; | ||
|
||
client_max_body_size 64m; | ||
sendfile on; | ||
tcp_nodelay on; | ||
tcp_nopush on; | ||
|
||
gzip_vary on; | ||
|
||
access_log /var/log/nginx/access.log; | ||
error_log /var/log/nginx/error.log; | ||
|
||
server { | ||
listen 80; | ||
|
||
root /app/tests/Application/public; | ||
index index.php; | ||
|
||
location / { | ||
try_files $uri /index.php$is_args$args; | ||
} | ||
|
||
location ~ \.php$ { | ||
include fastcgi_params; | ||
|
||
fastcgi_pass unix:/var/run/php8-fpm.sock; | ||
fastcgi_split_path_info ^(.+\.php)(/.*)$; | ||
|
||
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; | ||
fastcgi_param DOCUMENT_ROOT $realpath_root; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[PHP] | ||
memory_limit=512M | ||
|
||
[date] | ||
date.timezone=${PHP_DATE_TIMEZONE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
# Change these settings to your own preference | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# We recommend you to keep these unchanged | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.feature] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.js] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.json] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.md] | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = false | ||
|
||
[*.neon] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.php] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.sh] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.{yaml,yml}] | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = false | ||
|
||
[.babelrc] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[.gitmodules] | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
[.php_cs{,.dist}] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[composer.json] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[package.json] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[phpspec.yml{,.dist}] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[phpstan.neon] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[phpunit.xml{,.dist}] | ||
indent_style = space | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
phpunit: | ||
vendor/bin/phpunit | ||
|
||
phpspec: | ||
vendor/bin/phpspec run --ansi --no-interaction -f dot | ||
|
||
phpstan: | ||
vendor/bin/phpstan analyse | ||
|
||
psalm: | ||
vendor/bin/psalm | ||
|
||
behat-js: | ||
APP_ENV=test vendor/bin/behat --colors --strict --no-interaction -vvv -f progress | ||
|
||
install: | ||
composer install --no-interaction --no-scripts | ||
|
||
backend: | ||
tests/Application/bin/console sylius:install --no-interaction | ||
tests/Application/bin/console sylius:fixtures:load default --no-interaction | ||
|
||
frontend: | ||
(cd tests/Application && yarn install --pure-lockfile) | ||
(cd tests/Application && GULP_ENV=prod yarn build) | ||
|
||
behat: | ||
APP_ENV=test vendor/bin/behat --colors --strict --no-interaction -vvv -f progress | ||
|
||
dropdb: | ||
tests/Application/bin/console doctrine:database:drop --if-exists --force | ||
|
||
createdb: | ||
tests/Application/bin/console doctrine:database:create --if-not-exists | ||
|
||
init: createdb install backend frontend | ||
|
||
reinit: dropdb init | ||
|
||
ci: init phpstan psalm phpunit phpspec behat | ||
|
||
integration: init phpunit behate | ||
|
||
static: install phpspec phpstan psalm | ||
|
||
serve: | ||
(cd tests/Application && APP_ENV=dev symfony serve) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use PhpCsFixer\Fixer\ClassNotation\VisibilityRequiredFixer; | ||
use Symplify\EasyCodingStandard\Config\ECSConfig; | ||
use Symplify\EasyCodingStandard\ValueObject\Option; | ||
|
||
return static function (ECSConfig $ecsConfig): void { | ||
$ecsConfig->import('vendor/sylius-labs/coding-standard/ecs.php'); | ||
|
||
$ecsConfig->parameters()->set(Option::SKIP, [ | ||
VisibilityRequiredFixer::class => ['*Spec.php'], | ||
]); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tests/Application/node_modules |
Oops, something went wrong.