build:
environment:
timezone: 'Europe/Paris'
hosts:
local.test: '127.0.0.1'
variables:
APP_ENV: 'test'
APP_SECRET: 'secret'
JWT_PRIVATE_KEY_PATH: 'config/jwt/test/private.pem'
JWT_PUBLIC_KEY_PATH: 'config/jwt/test/public.pem'
JWT_PASSPHRASE: 'passphrase'
elasticsearch: false
postgresql: false
rabbitmq: false
mysql: false
redis: false
node: v10.14.2
php:
version: 7.2.13
ini:
'date.timezone': 'Europe/Paris'
nodes:
analysis:
project_setup:
override:
- 'true'
tests:
override:
- php-scrutinizer-run
-
command: phpcs-run
use_website_config: true
tests:
tests:
override:
-
command: 'vendor/bin/phpunit --coverage-clover=some-file'
coverage:
file: 'some-file'
format: 'clover'
spec-tests:
environment:
variables:
APIURL: 'http://local.test/api'
nginx:
sites:
app:
host: 'local.test'
web_root: 'public/'
index: 'index.php'
locations:
- >
location / {
try_files $uri /index.php$is_args$args;
}
- >
location ~ ^/index\.php(/|$) {
fastcgi_pass 127.0.0.1:9000;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
internal;
}
tests:
before:
- 'bin/console doctrine:database:create'
- 'bin/console doctrine:schema:create'
- 'bin/console doctrine:fixtures:load --no-interaction'
override:
-
command: 'bash ./spec/api-spec-test-runner.sh'
filter:
paths:
- 'src/'
- 'public/index.php'
dependency_paths:
- 'vendor/'
checks:
php: true
coding_style:
php: { }