Checkout Config
build:
environment:
variables:
ENV: 'ci'
mysql: false
postgresql: false
redis: false
rabbitmq: false
php:
version: 7.1
ini:
'date.timezone': 'Europe/Amsterdam'
docker:
remote_engine: true
cache:
images:
- 'php:7.1-alpine'
- 'hgraca/explicit-architecture:app.sfn.base'
dependencies:
override:
- true # so scrutinizer does't install the dependencies, which we don't need because they are inside the container
tests:
override:
-
command: make test-ci
coverage:
file: var/coverage.clover.xml
format: php-clover
-
command: bash <(curl -s https://codecov.io/bash)
# Used for deployment.
# Will only be executed if all tests succeeded.
# If run in parallel, will be executed in the container where tests finish last.
deployment:
-
branch: '/^acc-/'
commands:
- make deploy-acc-ci
-
branch: master
commands:
- make deploy-prd-ci
filter:
paths:
- "src/"
dependency_paths:
- "vendor/"
build_failure_conditions:
- 'issues.new.exists'
- 'project.metric_change("scrutinizer.test_coverage", < -0.05)'
checks:
php:
code_rating: true
duplication: true
Repository Config
build:
environment:
variables:
CODECOV_TOKEN: 'b7b7874a-1fcc-42c7-8d5d-91fe6d4e7d26'
HEROKU_TOKEN: 'a954b851-8f7b-4187-b6eb-ea009435a7d5'
ENV: 'ci'
APP_ENV: 'test'
APP_DEBUG: 0
APP_SECRET: '67d829bf61dc5f87a73fd814e2c9f629'
DATABASE_URL: 'sqlite:///%kernel.project_dir%/var/data/blog.sqlite'
MAILER_URL: 'null://localhost'
ACC_ENV: 'acc'
ACC_APP_ENV: 'prod'
ACC_APP_DEBUG: 0
ACC_APP_SECRET: '67d829bf61dc5f87a73fd814e2c9f629'
ACC_DATABASE_URL: 'sqlite:///%kernel.project_dir%/var/data/blog.sqlite'
ACC_MAILER_URL: 'null://localhost'
heroku:
api_key: 'a954b851-8f7b-4187-b6eb-ea009435a7d5'
email: '[email protected]'