2021-09-07 09:03:02 +02:00
|
|
|
stages:
|
2021-12-15 12:28:06 +01:00
|
|
|
- validate
|
2021-09-07 09:03:02 +02:00
|
|
|
- test
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- apk add zip
|
|
|
|
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
|
|
|
- php composer-setup.php --filename composer --install-dir /bin
|
|
|
|
- php -r "unlink('composer-setup.php');"
|
|
|
|
|
2021-12-15 12:28:06 +01:00
|
|
|
validate:composer:
|
2021-11-24 13:36:11 +01:00
|
|
|
image: php:8.0-alpine
|
2021-12-15 12:28:06 +01:00
|
|
|
stage: validate
|
2021-09-07 09:03:02 +02:00
|
|
|
script:
|
|
|
|
- composer validate --no-check-publish --strict
|
|
|
|
|
2021-12-15 12:28:06 +01:00
|
|
|
validate:php:8.0:
|
2021-11-24 13:35:53 +01:00
|
|
|
image: php:8.0-alpine
|
2021-12-15 12:28:06 +01:00
|
|
|
stage: validate
|
2021-11-24 13:35:53 +01:00
|
|
|
script:
|
|
|
|
- find *.php Classes Configuration -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
|
|
|
|
|
2021-12-15 12:28:06 +01:00
|
|
|
validate:php:7.4:
|
2021-09-07 09:03:02 +02:00
|
|
|
image: php:7.4-alpine
|
2021-12-15 12:28:06 +01:00
|
|
|
stage: validate
|
2021-09-07 09:03:02 +02:00
|
|
|
script:
|
|
|
|
- find *.php Classes Configuration -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
|
|
|
|
|
2021-12-15 12:28:06 +01:00
|
|
|
validate:php:7.3:
|
2021-09-07 09:03:02 +02:00
|
|
|
image: php:7.3-alpine
|
2021-12-15 12:28:06 +01:00
|
|
|
stage: validate
|
2021-09-07 09:03:02 +02:00
|
|
|
script:
|
|
|
|
- find *.php Classes Configuration -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
|
|
|
|
|
2021-12-15 12:28:06 +01:00
|
|
|
validate:php:7.2:
|
2021-09-07 16:19:29 +02:00
|
|
|
image: php:7.2-alpine
|
2021-12-15 12:28:06 +01:00
|
|
|
stage: validate
|
2021-09-07 16:19:29 +02:00
|
|
|
script:
|
|
|
|
- find *.php Classes Configuration -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
|
|
|
|
|
2021-12-15 12:28:06 +01:00
|
|
|
validate:xml:
|
2021-09-07 09:03:02 +02:00
|
|
|
image: php:7.3-alpine
|
2021-12-15 12:28:06 +01:00
|
|
|
stage: validate
|
2021-09-07 09:03:02 +02:00
|
|
|
before_script:
|
|
|
|
script:
|
|
|
|
- apk add libxml2-utils wget
|
|
|
|
- composer install --prefer-dist --no-progress
|
|
|
|
- wget https://docs.oasis-open.org/xliff/v1.2/os/xliff-core-1.2-strict.xsd --output-document=.Build/xliff-core-1.2-strict.xsd
|
|
|
|
- xmllint --schema .Build/xliff-core-1.2-strict.xsd --noout $(find Resources -name '*.xlf')
|
|
|
|
|
2021-12-15 12:28:06 +01:00
|
|
|
validate:cgl:
|
2021-09-07 09:03:02 +02:00
|
|
|
image: php:7.3-alpine
|
2021-12-15 12:28:06 +01:00
|
|
|
stage: validate
|
2021-09-07 09:03:02 +02:00
|
|
|
before_script:
|
|
|
|
script:
|
|
|
|
- composer install --prefer-dist --no-progress
|
2021-12-16 09:11:45 +01:00
|
|
|
- ./vendor/bin/ecs check --no-progress-bar --clear-cache
|
2021-09-07 09:52:14 +02:00
|
|
|
|
2021-12-15 12:28:06 +01:00
|
|
|
validate:phpstan:8.0:
|
2021-11-24 13:35:53 +01:00
|
|
|
image: php:8.0-alpine
|
2021-12-15 12:28:06 +01:00
|
|
|
stage: validate
|
2021-11-24 13:35:53 +01:00
|
|
|
before_script:
|
|
|
|
script:
|
|
|
|
- composer install --prefer-dist --no-progress
|
|
|
|
- php -d memory_limit=-1 ./vendor/bin/phpstan --no-progress
|
|
|
|
|
2021-12-15 12:28:06 +01:00
|
|
|
validate:phpstan:7.4:11.5:
|
2021-09-07 16:19:29 +02:00
|
|
|
image: php:7.4-alpine
|
2021-12-15 12:28:06 +01:00
|
|
|
stage: validate
|
2021-09-07 16:19:29 +02:00
|
|
|
before_script:
|
|
|
|
script:
|
2021-11-24 13:36:11 +01:00
|
|
|
- composer require --no-ansi --no-interaction --no-progress typo3/cms-core:"^11.5"
|
|
|
|
- php -d memory_limit=-1 ./vendor/bin/phpstan --no-progress
|
|
|
|
|
2021-12-15 12:28:06 +01:00
|
|
|
validate:phpstan:7.4:10.4:
|
2021-11-24 13:36:11 +01:00
|
|
|
image: php:7.4-alpine
|
2021-12-15 12:28:06 +01:00
|
|
|
stage: validate
|
2021-11-24 13:36:11 +01:00
|
|
|
before_script:
|
|
|
|
script:
|
|
|
|
- composer require --no-ansi --no-interaction --no-progress typo3/cms-core:"^10.4"
|
2021-11-24 13:35:53 +01:00
|
|
|
- php -d memory_limit=-1 ./vendor/bin/phpstan --no-progress
|
2021-09-07 16:19:29 +02:00
|
|
|
|
2021-12-15 12:28:06 +01:00
|
|
|
validate:phpstan:7.3:
|
2021-09-07 11:37:56 +02:00
|
|
|
image: php:7.3-alpine
|
2021-12-15 12:28:06 +01:00
|
|
|
stage: validate
|
2021-09-07 11:37:56 +02:00
|
|
|
before_script:
|
|
|
|
script:
|
|
|
|
- composer install --prefer-dist --no-progress
|
2021-11-24 13:35:53 +01:00
|
|
|
- php -d memory_limit=-1 ./vendor/bin/phpstan --no-progress
|
2021-09-07 16:19:29 +02:00
|
|
|
|
2021-12-15 12:28:06 +01:00
|
|
|
validate:phpstan:7.2:
|
2021-09-07 16:19:29 +02:00
|
|
|
image: php:7.2-alpine
|
2021-12-15 12:28:06 +01:00
|
|
|
stage: validate
|
|
|
|
before_script:
|
|
|
|
script:
|
|
|
|
- composer install --prefer-dist --no-progress
|
|
|
|
- php -d memory_limit=-1 ./vendor/bin/phpunit --testdox
|
|
|
|
|
|
|
|
test:phpunit:8.0:
|
|
|
|
image: php:8.0-alpine
|
2021-09-07 16:19:29 +02:00
|
|
|
stage: test
|
|
|
|
before_script:
|
|
|
|
script:
|
|
|
|
- composer install --prefer-dist --no-progress
|
2021-12-15 12:28:06 +01:00
|
|
|
- php -d memory_limit=-1 ./vendor/bin/phpunit --testdox
|
|
|
|
|
|
|
|
test:phpunit:7.4:11.5:
|
|
|
|
image: php:7.4-alpine
|
|
|
|
stage: test
|
|
|
|
before_script:
|
|
|
|
script:
|
|
|
|
- composer require --no-ansi --no-interaction --no-progress typo3/cms-core:"^11.5"
|
|
|
|
- php -d memory_limit=-1 ./vendor/bin/phpunit --testdox
|
|
|
|
|
|
|
|
test:phpunit:7.4:10.4:
|
|
|
|
image: php:7.4-alpine
|
|
|
|
stage: test
|
|
|
|
before_script:
|
|
|
|
script:
|
|
|
|
- composer require --no-ansi --no-interaction --no-progress typo3/cms-core:"^10.4"
|
|
|
|
- php -d memory_limit=-1 ./vendor/bin/phpunit --testdox
|
|
|
|
|
|
|
|
test:phpunit:7.3:
|
|
|
|
image: php:7.3-alpine
|
|
|
|
stage: test
|
|
|
|
before_script:
|
|
|
|
script:
|
|
|
|
- composer install --prefer-dist --no-progress
|
|
|
|
- php -d memory_limit=-1 ./vendor/bin/phpunit --testdox
|
|
|
|
|
|
|
|
test:phpunit:7.2:
|
|
|
|
image: php:7.2-alpine
|
|
|
|
stage: test
|
|
|
|
before_script:
|
|
|
|
script:
|
|
|
|
- composer install --prefer-dist --no-progress
|
|
|
|
- php -d memory_limit=-1 ./vendor/bin/phpunit --testdox
|