Repository Config
build:
environment:
timezone: 'Europe/Paris'
hosts:
localhost: '127.0.0.1'
local.dev: '127.0.0.1'
variables:
APP_ENV: 'test'
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:
APP_ENV: 'test'
JWT_PRIVATE_KEY_PATH: 'config/jwt/test/private.pem'
JWT_PUBLIC_KEY_PATH: 'config/jwt/public.pem'
JWT_PASSPHRASE: 'passphrase'
APIURL: 'http://local.dev/api'
nginx:
sites:
app:
host: 'local.dev'
web_root: 'public/'
index: 'index.php'
tests:
before:
-
command: 'cp .env.dist .env'
override:
-
command: 'bash ./spec/api-spec-test-runner.sh'
filter:
paths:
- 'src/'
- 'public/index.php'
dependency_paths:
- 'vendor/'
checks:
php: true
coding_style:
php: { }