-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
55 lines (39 loc) · 1020 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
44
45
46
47
48
49
50
51
52
53
54
55
include:
- template: Security/SAST.gitlab-ci.yml
- template: Security/Secret-Detection.gitlab-ci.yml
test:
stage: test
parallel:
matrix:
- PHP_VERSION:
- '7.2'
- '7.3'
- '7.4'
- '8.0'
COMPOSER_PREFER:
- '--prefer-stable'
- '--prefer-lowest'
before_script:
- sh .gitlab/ci/docker_install.sh
- composer install --no-progress
image: php:${PHP_VERSION}-cli
script:
- ./vendor/bin/atoum
after_script:
- bash <(curl -s https://codecov.io/bash) -f reports/cobertura.xml
artifacts:
reports:
cobertura: reports/cobertura.xml
junit: reports/junit.xml
coverage: '/Code coverage value: \d+\.\d+/'
phpcs:
stage: test
image: php:8.0-cli
before_script:
- sh .gitlab/ci/docker_install.sh
- composer install --no-progress
script:
- ./vendor/bin/phpcs --report=\\Satesh\\Phpcs\\GitLabReport --report-file=codequality.json
artifacts:
reports:
codequality: codequality.json