2020-07-24 11:53:07 +02:00
|
|
|
---
|
|
|
|
stages:
|
|
|
|
- build
|
2020-09-05 12:37:50 +02:00
|
|
|
- lint
|
2020-09-22 22:29:38 +02:00
|
|
|
- codestyle
|
2021-02-18 10:44:35 +01:00
|
|
|
- normalize
|
2020-08-05 13:51:20 +02:00
|
|
|
- test
|
|
|
|
|
|
|
|
include:
|
|
|
|
- template: License-Management.gitlab-ci.yml
|
2020-11-04 18:08:50 +01:00
|
|
|
- template: Secret-Detection.gitlab-ci.yml
|
2020-08-05 13:51:20 +02:00
|
|
|
- template: SAST.gitlab-ci.yml
|
2020-07-24 11:53:07 +02:00
|
|
|
|
2020-09-22 23:16:08 +02:00
|
|
|
variables:
|
|
|
|
MYSQL_ROOT_PASSWORD: root
|
|
|
|
typo3DatabaseName: typo3
|
|
|
|
typo3DatabaseHost: mariadb
|
|
|
|
typo3DatabaseUsername: root
|
|
|
|
typo3DatabasePassword: root
|
|
|
|
|
2020-11-16 22:31:35 +01:00
|
|
|
.default:
|
|
|
|
image: php:7.4
|
|
|
|
before_script:
|
|
|
|
- bash .gitlab/build/docker_install.sh > /dev/null
|
|
|
|
|
2020-12-02 16:08:00 +01:00
|
|
|
.default-frontend:
|
|
|
|
image: node:latest
|
|
|
|
needs: [ ]
|
|
|
|
cache:
|
|
|
|
key: "$CI_PROJECT_ID"
|
|
|
|
paths:
|
|
|
|
- Resources/Private/node_modules/
|
|
|
|
- Resources/Private/.yarn
|
|
|
|
before_script:
|
|
|
|
- npm install -g eslint
|
|
|
|
- cd ./Resources/Private
|
|
|
|
- yarn install --cache-folder .yarn
|
|
|
|
|
2020-07-24 11:53:07 +02:00
|
|
|
build-composer-dependencies:
|
2020-11-16 22:31:35 +01:00
|
|
|
extends: .default
|
2020-07-24 11:53:07 +02:00
|
|
|
stage: build
|
2020-12-01 23:12:34 +01:00
|
|
|
needs: [ ]
|
2020-07-24 11:53:07 +02:00
|
|
|
variables:
|
|
|
|
COMPOSER_CACHE_DIR: '.composer'
|
|
|
|
script:
|
2020-10-31 19:18:59 +01:00
|
|
|
- composer --version
|
2020-07-24 11:53:07 +02:00
|
|
|
- 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-09-05 12:37:50 +02:00
|
|
|
php-lint-php7.2:
|
2020-11-16 22:31:35 +01:00
|
|
|
extends: .default
|
2020-09-05 12:37:50 +02:00
|
|
|
image: php:7.2
|
|
|
|
stage: lint
|
2020-12-01 23:12:34 +01:00
|
|
|
needs: [ ]
|
2020-09-05 12:37:50 +02:00
|
|
|
script:
|
|
|
|
- composer ci:php:lint
|
|
|
|
|
|
|
|
php-lint-php7.3:
|
2020-11-16 22:31:35 +01:00
|
|
|
extends: .default
|
2020-09-05 12:37:50 +02:00
|
|
|
image: php:7.3
|
|
|
|
stage: lint
|
2020-12-01 23:12:34 +01:00
|
|
|
needs: [ ]
|
2020-09-05 12:37:50 +02:00
|
|
|
script:
|
|
|
|
- composer ci:php:lint
|
|
|
|
|
|
|
|
php-lint-php7.4:
|
2020-11-16 22:31:35 +01:00
|
|
|
extends: .default
|
2020-09-05 12:37:50 +02:00
|
|
|
image: php:7.4
|
|
|
|
stage: lint
|
2020-12-01 23:12:34 +01:00
|
|
|
needs: [ ]
|
2020-09-05 12:37:50 +02:00
|
|
|
script:
|
|
|
|
- composer ci:php:lint
|
|
|
|
|
|
|
|
ts-lint:
|
2020-11-16 22:31:35 +01:00
|
|
|
extends: .default
|
2020-09-05 12:37:50 +02:00
|
|
|
stage: lint
|
|
|
|
needs:
|
|
|
|
- build-composer-dependencies
|
|
|
|
script:
|
|
|
|
- composer ci:ts:lint
|
|
|
|
|
|
|
|
json-lint:
|
2020-11-16 22:31:35 +01:00
|
|
|
extends: .default
|
2020-09-05 12:37:50 +02:00
|
|
|
stage: lint
|
|
|
|
needs:
|
|
|
|
- build-composer-dependencies
|
|
|
|
script:
|
|
|
|
- composer ci:json:lint
|
|
|
|
|
|
|
|
yaml-lint:
|
2020-11-16 22:31:35 +01:00
|
|
|
extends: .default
|
2020-09-05 12:37:50 +02:00
|
|
|
stage: lint
|
|
|
|
needs:
|
|
|
|
- build-composer-dependencies
|
|
|
|
script:
|
|
|
|
- composer ci:yaml:lint
|
|
|
|
|
|
|
|
xliff-lint:
|
2020-11-16 22:31:35 +01:00
|
|
|
extends: .default
|
2020-09-05 12:37:50 +02:00
|
|
|
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')
|
|
|
|
|
2020-12-02 16:08:00 +01:00
|
|
|
javascript-lint:
|
|
|
|
extends: .default-frontend
|
|
|
|
stage: lint
|
|
|
|
script:
|
|
|
|
- yarn lint:js
|
|
|
|
|
|
|
|
style-lint:
|
|
|
|
extends: .default-frontend
|
|
|
|
stage: lint
|
|
|
|
script:
|
|
|
|
- yarn lint:style
|
|
|
|
|
2020-09-22 23:16:08 +02:00
|
|
|
unit-php7.2-v10:
|
2020-11-16 22:31:35 +01:00
|
|
|
extends: .default
|
2020-09-22 23:16:08 +02:00
|
|
|
image: php:7.2
|
|
|
|
stage: test
|
|
|
|
needs:
|
|
|
|
- build-composer-dependencies
|
|
|
|
- php-lint-php7.2
|
|
|
|
script:
|
2020-11-24 02:02:32 +01:00
|
|
|
- composer require --no-progress typo3/minimal:"^10.4"
|
2020-09-22 23:16:08 +02:00
|
|
|
- composer ci:tests:unit
|
|
|
|
|
|
|
|
unit-php7.3-v10:
|
2020-11-16 22:31:35 +01:00
|
|
|
extends: .default
|
2020-09-22 23:16:08 +02:00
|
|
|
image: php:7.3
|
|
|
|
stage: test
|
|
|
|
needs:
|
|
|
|
- build-composer-dependencies
|
|
|
|
- php-lint-php7.3
|
|
|
|
script:
|
2020-11-24 02:02:32 +01:00
|
|
|
- composer require --no-progress typo3/minimal:"^10.4"
|
2020-09-22 23:16:08 +02:00
|
|
|
- composer ci:tests:unit
|
|
|
|
|
|
|
|
unit-php7.4-v10:
|
2020-11-16 22:31:35 +01:00
|
|
|
extends: .default
|
2020-09-22 23:16:08 +02:00
|
|
|
image: php:7.4
|
|
|
|
stage: test
|
|
|
|
needs:
|
|
|
|
- build-composer-dependencies
|
|
|
|
- php-lint-php7.4
|
|
|
|
script:
|
2020-11-24 02:02:32 +01:00
|
|
|
- composer require --no-progress typo3/minimal:"^10.4"
|
2020-09-22 23:16:08 +02:00
|
|
|
- composer ci:tests:unit
|
|
|
|
|
|
|
|
func-php7.2-v10:
|
2020-11-16 22:31:35 +01:00
|
|
|
extends: .default
|
2020-09-22 23:16:08 +02:00
|
|
|
image: php:7.2
|
|
|
|
services:
|
|
|
|
- mariadb:10
|
|
|
|
stage: test
|
|
|
|
needs:
|
|
|
|
- build-composer-dependencies
|
|
|
|
- php-lint-php7.2
|
|
|
|
script:
|
2020-11-24 02:02:32 +01:00
|
|
|
- composer require --no-progress typo3/minimal:"^10.4"
|
2020-09-22 23:16:08 +02:00
|
|
|
- composer ci:tests:functional
|
|
|
|
|
|
|
|
func-php7.3-v10:
|
2020-11-16 22:31:35 +01:00
|
|
|
extends: .default
|
2020-09-22 23:16:08 +02:00
|
|
|
image: php:7.3
|
|
|
|
services:
|
|
|
|
- mariadb:10
|
|
|
|
stage: test
|
|
|
|
needs:
|
|
|
|
- build-composer-dependencies
|
|
|
|
- php-lint-php7.3
|
|
|
|
script:
|
2020-11-24 02:02:32 +01:00
|
|
|
- composer require --no-progress typo3/minimal:"^10.4"
|
2020-09-22 23:16:08 +02:00
|
|
|
- composer ci:tests:functional
|
|
|
|
|
|
|
|
func-php7.4-v10:
|
2020-11-16 22:31:35 +01:00
|
|
|
extends: .default
|
2020-09-22 23:16:08 +02:00
|
|
|
image: php:7.4
|
|
|
|
services:
|
|
|
|
- mariadb:10
|
|
|
|
stage: test
|
|
|
|
needs:
|
|
|
|
- build-composer-dependencies
|
|
|
|
- php-lint-php7.4
|
|
|
|
script:
|
2020-11-24 02:02:32 +01:00
|
|
|
- composer require --no-progress typo3/minimal:"^10.4"
|
2020-09-22 23:16:08 +02:00
|
|
|
- composer ci:tests:functional
|
|
|
|
|
|
|
|
unit-php7.2-v9:
|
2020-11-16 22:31:35 +01:00
|
|
|
extends: .default
|
2020-09-22 23:16:08 +02:00
|
|
|
image: php:7.2
|
|
|
|
stage: test
|
2020-12-01 23:12:34 +01:00
|
|
|
dependencies: [ ]
|
2020-09-22 23:16:08 +02:00
|
|
|
needs:
|
|
|
|
- build-composer-dependencies
|
|
|
|
- php-lint-php7.2
|
|
|
|
script:
|
2020-11-24 02:02:32 +01:00
|
|
|
- composer require --no-progress typo3/minimal:"^9.5"
|
2020-09-22 23:16:08 +02:00
|
|
|
- composer ci:tests:unit
|
|
|
|
|
|
|
|
unit-php7.3-v9:
|
2020-11-16 22:31:35 +01:00
|
|
|
extends: .default
|
2020-09-22 23:16:08 +02:00
|
|
|
image: php:7.3
|
|
|
|
stage: test
|
2020-12-01 23:12:34 +01:00
|
|
|
dependencies: [ ]
|
2020-09-22 23:16:08 +02:00
|
|
|
needs:
|
|
|
|
- build-composer-dependencies
|
|
|
|
- php-lint-php7.3
|
|
|
|
script:
|
2020-11-24 02:02:32 +01:00
|
|
|
- composer require --no-progress typo3/minimal:"^9.5"
|
2020-09-22 23:16:08 +02:00
|
|
|
- composer ci:tests:unit
|
|
|
|
|
|
|
|
unit-php7.4-v9:
|
2020-11-16 22:31:35 +01:00
|
|
|
extends: .default
|
2020-09-22 23:16:08 +02:00
|
|
|
image: php:7.4
|
|
|
|
stage: test
|
2020-12-01 23:12:34 +01:00
|
|
|
dependencies: [ ]
|
2020-09-22 23:16:08 +02:00
|
|
|
needs:
|
|
|
|
- build-composer-dependencies
|
|
|
|
- php-lint-php7.4
|
|
|
|
script:
|
2020-11-24 02:02:32 +01:00
|
|
|
- composer require --no-progress typo3/minimal:"^9.5"
|
2020-09-22 23:16:08 +02:00
|
|
|
- composer ci:tests:unit
|
|
|
|
|
|
|
|
func-php7.2-v9:
|
2020-11-16 22:31:35 +01:00
|
|
|
extends: .default
|
2020-09-22 23:16:08 +02:00
|
|
|
image: php:7.2
|
|
|
|
services:
|
|
|
|
- mariadb:10
|
|
|
|
stage: test
|
2020-12-01 23:12:34 +01:00
|
|
|
dependencies: [ ]
|
2020-09-22 23:16:08 +02:00
|
|
|
needs:
|
|
|
|
- build-composer-dependencies
|
|
|
|
- php-lint-php7.2
|
|
|
|
script:
|
2020-11-24 02:02:32 +01:00
|
|
|
- composer require --no-progress typo3/minimal:"^9.5"
|
2020-09-22 23:16:08 +02:00
|
|
|
- composer ci:tests:functional
|
|
|
|
|
|
|
|
func-php7.3-v9:
|
2020-11-16 22:31:35 +01:00
|
|
|
extends: .default
|
2020-09-22 23:16:08 +02:00
|
|
|
image: php:7.3
|
|
|
|
services:
|
|
|
|
- mariadb:10
|
|
|
|
stage: test
|
2020-12-01 23:12:34 +01:00
|
|
|
dependencies: [ ]
|
2020-09-22 23:16:08 +02:00
|
|
|
needs:
|
|
|
|
- build-composer-dependencies
|
|
|
|
- php-lint-php7.3
|
|
|
|
script:
|
2020-11-24 02:02:32 +01:00
|
|
|
- composer require --no-progress typo3/minimal:"^9.5"
|
2020-09-22 23:16:08 +02:00
|
|
|
- composer ci:tests:functional
|
|
|
|
|
|
|
|
func-php7.4-v9:
|
2020-11-16 22:31:35 +01:00
|
|
|
extends: .default
|
2020-09-22 23:16:08 +02:00
|
|
|
image: php:7.4
|
|
|
|
services:
|
|
|
|
- mariadb:10
|
|
|
|
stage: test
|
2020-12-01 23:12:34 +01:00
|
|
|
dependencies: [ ]
|
2020-09-22 23:16:08 +02:00
|
|
|
needs:
|
|
|
|
- build-composer-dependencies
|
|
|
|
- php-lint-php7.4
|
|
|
|
script:
|
2020-11-24 02:02:32 +01:00
|
|
|
- composer require --no-progress typo3/minimal:"^9.5"
|
2020-09-22 23:16:08 +02:00
|
|
|
- composer ci:tests:functional
|
|
|
|
|
2020-09-22 22:29:38 +02:00
|
|
|
phpcs:
|
2020-11-16 22:31:35 +01:00
|
|
|
extends: .default
|
2020-09-22 22:29:38 +02:00
|
|
|
stage: codestyle
|
|
|
|
needs:
|
|
|
|
- build-composer-dependencies
|
|
|
|
- php-lint-php7.2
|
|
|
|
- php-lint-php7.3
|
|
|
|
- php-lint-php7.4
|
|
|
|
script:
|
|
|
|
- composer ci:php:sniff
|
2020-11-21 18:21:09 +01:00
|
|
|
|
|
|
|
php-copypaste-check:
|
2020-12-01 23:39:46 +01:00
|
|
|
extends: .default
|
2020-11-21 18:21:09 +01:00
|
|
|
stage: codestyle
|
|
|
|
needs:
|
|
|
|
- build-composer-dependencies
|
|
|
|
- php-lint-php7.2
|
|
|
|
- php-lint-php7.3
|
|
|
|
- php-lint-php7.4
|
|
|
|
script:
|
|
|
|
- composer ci:php:copypaste
|
2021-02-18 10:44:35 +01:00
|
|
|
|
|
|
|
composer-normalize:
|
|
|
|
extends: .default
|
|
|
|
stage: codestyle
|
|
|
|
script:
|
|
|
|
- composer ci:composer:normalize
|