-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
57 lines (46 loc) · 1.27 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
variables:
COMPOSER_ALLOW_SUPERUSER: 1
stages:
- lint
- deploy
lint_php:
stage: lint
image: git.cec.valantic.com:5050/valantic-pimcore/docker-images/php:8.2-alpine
before_script:
- composer install
script:
- exit 0 # Fixme ASAP
- composer run php-cs-fixer-check
- composer run phpstan
- composer run test
cache:
key: $CI_COMMIT_REF_SLUG
paths:
- vendor/
- vendor-bin/**/vendor/
artifacts:
when: always
reports:
junit: report.xml
coverage_report:
coverage_format: cobertura
path: coverage.cobertura.xml
lint_js:
stage: lint
image: git.cec.valantic.com:5050/valantic-pimcore/docker-images/node:lts
before_script:
- npm i
script:
- npm run lint
cache:
key: $CI_COMMIT_REF_SLUG
paths:
- node_modules/
deploy:
stage: deploy
image: git.cec.valantic.com:5050/valantic-pimcore/docker-images/php:8.2-alpine
only:
- tags
script:
- 'apk add --update git bash xz curl'
- 'curl -k --header "Job-Token: $CI_JOB_TOKEN" --data tag=${CI_COMMIT_TAG} "${CI_API_V4_URL}/projects/$CI_PROJECT_ID/packages/composer"'