mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-10 06:16:13 +01:00
tea/.gitlab-ci.yml
Łukasz Uznański 30bc3a0152
[FEATURE] Add code quality stage (#88)
Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.com>
2020-08-05 15:41:48 +02:00

49 lines
846 B
YAML

---
stages:
- build
- code_quality
- test
include:
- template: License-Management.gitlab-ci.yml
- template: SAST.gitlab-ci.yml
- template: Code-Quality.gitlab-ci.yml
default:
image: php:7.4
before_script:
- bash .gitlab/build/docker_install.sh > /dev/null
build-composer-dependencies:
stage: build
variables:
COMPOSER_CACHE_DIR: '.composer'
script:
- COMPOSER_CACHE_DIR=.composer
composer install --prefer-dist --no-progress --optimize-autoloader
artifacts:
when: on_success
expire_in: 2 weeks
paths:
- .Build
cache:
paths:
- .composer
- .Build
phpcs:
stage: code_quality
script:
- composer ci:php:sniff
code_quality:
before_script: []
eslint-sast:
before_script: []
phpcs-security-audit-sast:
before_script: []
secrets-sast:
before_script: []