-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
52 lines (46 loc) · 1.06 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
include:
- template: Jobs/Secret-Detection.gitlab-ci.yml
stages:
- test
- announce
.job_template: &test_job
stage: test
script:
- phing test
cache:
paths:
- vendor/
test:php8.3:
<<: *test_job
image: nexendrie/php:8.3
test:php8.4:
<<: *test_job
image: nexendrie/php:8.4
test:reports:
<<: *test_job
image: nexendrie/php:8.4
variables:
REPORTS: 1
coverage: '/(\d+\%) covered/'
artifacts:
paths:
- coverage.xml
- junit.xml
- phpstan.json
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
junit: junit.xml
codequality: phpstan.json
announce:gitlab:
stage: announce
image: registry.gitlab.com/gitlab-org/release-cli:latest
rules:
- if: $CI_COMMIT_TAG
script:
- echo "Creating GitLab release"
release:
tag_name: $CI_COMMIT_TAG
name: "My Tester $CI_COMMIT_TAG"
description: "./RELEASE_NOTES"