-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitbucket-pipelines.yml
59 lines (57 loc) · 2.22 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
image: thomasagedev/template-symfony:1.0.1
definitions:
services:
mysql:
image: mysql:8.4.3
environment:
MYSQL_DATABASE: test
MYSQL_PASSWORD: test
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: test
command:
- "--default-authentication-plugin=mysql_native_password"
pipelines:
default:
- step:
name: Setup environment
caches:
- composer
script:
- COMPOSER_ALLOW_SUPERUSER=1 composer install --prefer-dist --no-progress --no-suggest
artifacts:
- vendor/**
- parallel:
- step:
name: Run Rector
caches:
- composer
script:
- vendor/bin/rector --dry-run --no-progress-bar
- step:
name: Run PHP-CS-Fixer
caches:
- composer
script:
- vendor/bin/php-cs-fixer fix --allow-risky=yes --dry-run --show-progress=none
- step:
name: Run Twig-CS-Fixer
caches:
- composer
script:
- vendor/bin/twig-cs-fixer lint templates
- step:
name: Run PHPStan
caches:
- composer
script:
- bin/console cache:clear --env=dev
- vendor/bin/phpstan --memory-limit=1G --no-progress
- step:
name: Run PHPUnit
services:
- mysql
caches:
- composer
script:
- echo 'DATABASE_URL=mysql://root:[email protected]:3306/test?serverVersion=8.4.3&charset=utf8mb4' >> .env.test
- vendor/bin/phpunit --coverage-text