Repository Config
tools:
php_cs_fixer: true
build:
environment:
php:
version: "7.3.11"
ini:
memory_limit: "-1"
nodes:
functional-tests:
environment:
hosts:
'local.dev': '127.0.0.1'
apache2:
modules: ['rewrite']
sites:
symfony_app:
web_root: 'public/'
host: 'local.dev'
services:
mariadb: 10.5.4
#analysis:
# project_setup:
# override:
# - 'true'
#tests:
# override:
#- command: php bin/phpunit
# - php ./vendor/bin/phpunit
# Add the respective Scrutinizer analysis for your language
# - js-scrutinizer-run
# - php-scrutinizer-run
#tests: true
dependencies:
before:
- echo 'DATABASE_URL=mysql://root:@127.0.0.1:3306/scrutinizer?serverVersion=mariadb-10.5.4' > .env.local
- echo -e "KERNEL_CLASS='App\Kernel'\rAPP_SECRET=34c32c8b0a7cc951fd105659f77ec1b6\rSYMFONY_DEPRECATIONS_HELPER=999999\rPANTHER_APP_ENV=panther\rDATABASE_URL=mysql://root:@127.0.0.1:3306/scrutinizer?serverVersion=mariadb-10.5.4" > .env.test.local
- sudo chmod 777 -R ./bin
- alias phpunit="php bin/phpunit"
override:
- composer install --no-interaction
- php bin/console doctrine:database:create --if-not-exists --no-interaction
- php bin/console doctrine:migrations:migrate --no-interaction
- php bin/console doctrine:fixtures:load --no-interaction
- ./bin/phpunit install
# this checks that the source code follows the Symfony Code Syntax rules
- ./vendor/bin/php-cs-fixer fix --diff --dry-run -v
# this checks that the YAML config files contain no syntax errors
- php bin/console lint:yaml config --parse-tags
# this checks that the Twig template files contain no syntax errors
- php bin/console lint:twig templates --env=prod
# this checks that the XLIFF translations contain no syntax errors
- php bin/console lint:xliff translations
# this checks that Doctrine's mapping configurations are valid
- php bin/console doctrine:schema:validate --skip-sync -vvv --no-interaction
- php bin/phpunit
filter:
excluded_paths:
- 'tests/*'
- 'bin/*'
- '*/build/*'
checks:
php: true
javascript: true
coding_style:
php:
spaces:
within:
brackets: false