forked from edouardproust/web-dev-portfolio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
43 lines (35 loc) · 692 Bytes
/
.gitlab-ci.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
image: jakzal/phpqa:php7.4
before_script:
- composer install
cache:
paths:
- vendor/
stages:
- SecurityChecker
- CodingStandards
- UnitTests
security-checker:
stage: SecurityChecker
script:
- local-php-security-checker composer.lock
allow_failure: true
phpcs:
stage: CodingStandards
script:
- phpcs -v --standard=PSR2 --ignore=./src/Kernel.php ./src
allow_failure: true
phpstan:
stage: CodingStandards
script:
- phpstan analyse ./src
allow_failure: true
twig-lint:
stage: CodingStandards
script:
- twig-lint lint ./templates
allow_failure: true
phpunit:
stage: UnitTests
script:
- php bin/phpunit
allow_failure: false