Skip to content
Extraits de code Groupes Projets

Add CI

Ouvert marcimat requested to merge add_ci into main
.gitlab-ci.yml 0 → 100644
+ 111
0
stages:
- lint
- check
- test
default:
image:
name: spip/tools:8.2
entrypoint:
- "/bin/ash"
- "-c"
lint:
stage: lint
when: on_success
only:
- main
- merge_requests
script:
- make -f /Makefile lint
artifacts:
paths:
- build/phplint.json
expire_in: 2 days
reports:
codequality: build/phplint.json
phpstan:
stage: check
when: on_success
only:
- main
- merge_requests
script:
- make -f /Makefile analyze
artifacts:
paths:
- build/phpstan.json
expire_in: 2 days
reports:
codequality: build/phpstan.json
coding_standard:
stage: check
when: on_success
only:
- main
- merge_requests
script:
- make -f /Makefile cs
artifacts:
paths:
- build/ecs.json
expire_in: 2 days
reports:
codequality: build/ecs.json
outdated:
stage: check
when: on_success
only:
- main
- merge_requests
script:
- make -f /Makefile outdated
artifacts:
paths:
- build/gl-outdated.json
expire_in: 2 days
reports:
codequality: build/gl-outdated.json
audit:
stage: check
when: on_success
only:
- main
- merge_requests
script:
- make -f /Makefile audit
artifacts:
paths:
- build/gl-audit.json
expire_in: 2 days
reports:
codequality: build/gl-audit.json
coverage_report:
stage: test
when: on_success
parallel:
matrix:
- VERSION: ["8.2","8.3","latest"]
image:
name: spip/tools:$VERSION
entrypoint:
- "/bin/ash"
- "-c"
only:
- main
- merge_requests
script:
- make -f /Makefile test-coverage
artifacts:
paths:
- .phpunit.cache/corbertura/report.xml
expire_in: 2 days
reports:
coverage_report:
coverage_format: cobertura
path: .phpunit.cache/corbertura/report.xml
Chargement en cours