2020-07-24 11:53:07 +02:00
|
|
|
---
|
|
|
|
stages:
|
|
|
|
- build
|
2020-08-05 15:41:48 +02:00
|
|
|
- code_quality
|
2020-08-05 13:51:20 +02:00
|
|
|
- test
|
|
|
|
|
|
|
|
include:
|
|
|
|
- template: License-Management.gitlab-ci.yml
|
|
|
|
- template: SAST.gitlab-ci.yml
|
|
|
|
- template: Code-Quality.gitlab-ci.yml
|
2020-07-24 11:53:07 +02:00
|
|
|
|
|
|
|
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
|
2020-08-05 13:51:20 +02:00
|
|
|
|
2020-08-05 15:41:48 +02:00
|
|
|
phpcs:
|
|
|
|
stage: code_quality
|
|
|
|
script:
|
|
|
|
- composer ci:php:sniff
|
|
|
|
|
2020-08-05 13:51:20 +02:00
|
|
|
code_quality:
|
|
|
|
before_script: []
|
|
|
|
|
|
|
|
eslint-sast:
|
|
|
|
before_script: []
|
|
|
|
|
|
|
|
phpcs-security-audit-sast:
|
|
|
|
before_script: []
|
|
|
|
|
|
|
|
secrets-sast:
|
|
|
|
before_script: []
|