mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-09-20 03:16:13 +02:00
tea/.gitlab/pipeline/.gitlab-ci.yml
Łukasz Uznański c8d2cf9849
[TASK] Rework gitlab ci dependencies (#109)
Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.com>
2020-09-22 22:29:38 +02:00

107 lines
1.8 KiB
YAML

---
stages:
- build
- lint
- codestyle
- 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
needs: []
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
php-lint-php7.2:
image: php:7.2
stage: lint
needs: []
script:
- composer ci:php:lint
php-lint-php7.3:
image: php:7.3
stage: lint
needs: []
script:
- composer ci:php:lint
php-lint-php7.4:
image: php:7.4
stage: lint
needs: []
script:
- composer ci:php:lint
ts-lint:
stage: lint
needs:
- build-composer-dependencies
script:
- composer ci:ts:lint
json-lint:
stage: lint
needs:
- build-composer-dependencies
script:
- composer ci:json:lint
yaml-lint:
stage: lint
needs:
- build-composer-dependencies
script:
- composer ci:yaml:lint
xliff-lint:
stage: lint
needs:
- build-composer-dependencies
script:
- wget https://docs.oasis-open.org/xliff/v1.2/os/xliff-core-1.2-strict.xsd
- xmllint --schema ./xliff-core-1.2-strict.xsd
--noout $(find Resources -name '*.xlf')
phpcs:
stage: codestyle
needs:
- build-composer-dependencies
- php-lint-php7.2
- php-lint-php7.3
- php-lint-php7.4
script:
- composer ci:php:sniff
code_quality:
before_script: []
eslint-sast:
before_script: []
phpcs-security-audit-sast:
before_script: []
secrets-sast:
before_script: []