forked from icapps/php-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
35 lines (33 loc) · 1.06 KB
/
bitbucket-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
image: thecodingmachine/php:8.0-v4-apache
pipelines:
default: # Runs on all branches that don't have any specific pipeline assigned.
- step:
name: Build
caches:
- composer
script:
- cd symfony # set correct subdirectory
- composer install --dev --no-interaction --no-progress --prefer-dist
- ./vendor/bin/simple-phpunit
- ./vendor/bin/phpcs --standard=PSR2 --colors --exclude=Generic.Files.LineLength ./src
- ./vendor/bin/phpstan analyse ./src -c ./phpstan.neon
- php bin/adminconsole lint:twig templates
- php bin/adminconsole lint:yaml config
- php bin/adminconsole doctrine:schema:update --force
- php bin/adminconsole cache:clear
services:
- db
- redis
definitions:
services:
db:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: test
MYSQL_DATABASE: test
MYSQL_USER: test
MYSQL_PASSWORD: test
redis:
image: redis:latest
ports:
- '6379:6379'