-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
80 lines (69 loc) · 1.43 KB
/
.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- vendor/
variables:
# output upload and download progress every 2 seconds
TRANSFER_METER_FREQUENCY: "2s"
# Use fast compression for artifacts, resulting in larger archives
ARTIFACT_COMPRESSION_LEVEL: "fast"
# Use no compression for caches
CACHE_COMPRESSION_LEVEL: "fastest"
# Set maximum duration of cache upload and download
CACHE_REQUEST_TIMEOUT: 5
stages:
- build
- code
- test
install: # Installation des dépendances du projet
stage: build
script:
- composer install --prefer-dist --no-ansi --no-interaction --no-progress
tags:
- php81
- composer
code-fixer: # Vérification du code PHP
stage: code
dependencies:
- install
script:
- vendor/bin/php-cs-fixer fix --diff --dry-run
tags:
- php81
- composer
lint-yaml: # Vérification du YAML
stage: code
dependencies:
- install
script:
- bin/console lint:yaml config
tags:
- php81
- composer
lint-twig: # Vérification du Twig
stage: code
dependencies:
- install
script:
- bin/console lint:twig templates
tags:
- php81
- composer
static-code-analyzer: # Analyse static du code
stage: code
dependencies:
- install
script:
- vendor/bin/phpstan analyse --level 3 src tests
tags:
- php81
- composer
test:functional:
stage: test
dependencies:
- install
script:
- composer test
tags:
- php81
- composer