mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-24 20:16:13 +01:00

[TASK] Migrate to Core testing docker image in GitLab CI (#1187)

This commit is contained in:
Łukasz Uznański 2024-03-11 12:25:59 +01:00 committed by GitHub
parent 05e3bc8c35
commit 964efa4963
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
39 changed files with 55 additions and 68 deletions

View file

@ -4,12 +4,4 @@
set -xe set -xe
apt-get update -yqq apk add parallel
apt-get install git libzip-dev unzip parallel libxml2-utils wget wait-for-it libicu-dev -yqq
php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/local/bin/ --filename=composer
chmod +x /usr/local/bin/composer
docker-php-ext-install pdo_mysql zip mysqli intl
cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini
awk '/^error_reporting = E_ALL/{print "error_reporting = E_ALL & ~E_DEPRECATED"; next}1' /usr/local/etc/php/php.ini > temp.ini && mv temp.ini /usr/local/etc/php/php.ini

View file

@ -1,4 +1,4 @@
.default: .default:
image: php:7.4 image: ghcr.io/sbuerk/demo-core-testing-php83:latest
before_script: before_script:
- bash .gitlab/build/docker_install.sh > /dev/null - bash .gitlab/build/docker_install.sh > /dev/null

View file

@ -1,6 +1,6 @@
func-php7.4-v11-highest: func-php7.4-v11-highest:
extends: .default extends: .default
image: php:7.4 image: ghcr.io/sbuerk/demo-core-testing-php74:latest
services: services:
- mariadb:10 - mariadb:10
stage: test stage: test
@ -11,4 +11,4 @@ func-php7.4-v11-highest:
- echo "Job ${CI_JOB_NAME}" - echo "Job ${CI_JOB_NAME}"
- composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5" - composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5"
- composer update --no-ansi --no-interaction --no-progress --with-dependencies - composer update --no-ansi --no-interaction --no-progress --with-dependencies
- wait-for-it mariadb:3306 -t 60 --strict -- composer ci:tests:functional - composer ci:tests:functional

View file

@ -1,6 +1,6 @@
func-php7.4-v11-lowest: func-php7.4-v11-lowest:
extends: .default extends: .default
image: php:7.4 image: ghcr.io/sbuerk/demo-core-testing-php74:latest
services: services:
- mariadb:10 - mariadb:10
stage: test stage: test
@ -11,4 +11,4 @@ func-php7.4-v11-lowest:
- echo "Job ${CI_JOB_NAME}" - echo "Job ${CI_JOB_NAME}"
- composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5" - composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5"
- composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest - composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest
- wait-for-it mariadb:3306 -t 60 --strict -- composer ci:tests:functional - composer ci:tests:functional

View file

@ -1,6 +1,6 @@
func-php8.0-v11-highest: func-php8.0-v11-highest:
extends: .default extends: .default
image: php:8.0 image: ghcr.io/sbuerk/demo-core-testing-php80:latest
services: services:
- mariadb:10 - mariadb:10
stage: test stage: test
@ -11,4 +11,4 @@ func-php8.0-v11-highest:
- echo "Job ${CI_JOB_NAME}" - echo "Job ${CI_JOB_NAME}"
- composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5" - composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5"
- composer update --no-ansi --no-interaction --no-progress --with-dependencies - composer update --no-ansi --no-interaction --no-progress --with-dependencies
- wait-for-it mariadb:3306 -t 60 --strict -- composer ci:tests:functional - composer ci:tests:functional

View file

@ -1,6 +1,6 @@
func-php8.0-v11-lowest: func-php8.0-v11-lowest:
extends: .default extends: .default
image: php:8.0 image: ghcr.io/sbuerk/demo-core-testing-php80:latest
services: services:
- mariadb:10 - mariadb:10
stage: test stage: test
@ -11,4 +11,4 @@ func-php8.0-v11-lowest:
- echo "Job ${CI_JOB_NAME}" - echo "Job ${CI_JOB_NAME}"
- composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5" - composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5"
- composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest - composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest
- wait-for-it mariadb:3306 -t 60 --strict -- composer ci:tests:functional - composer ci:tests:functional

View file

@ -1,6 +1,6 @@
func-php8.1-v11-highest: func-php8.1-v11-highest:
extends: .default extends: .default
image: php:8.1 image: ghcr.io/sbuerk/demo-core-testing-php81:latest
services: services:
- mariadb:10 - mariadb:10
stage: test stage: test
@ -11,4 +11,4 @@ func-php8.1-v11-highest:
- echo "Job ${CI_JOB_NAME}" - echo "Job ${CI_JOB_NAME}"
- composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5" - composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5"
- composer update --no-ansi --no-interaction --no-progress --with-dependencies - composer update --no-ansi --no-interaction --no-progress --with-dependencies
- wait-for-it mariadb:3306 -t 60 --strict -- composer ci:tests:functional - composer ci:tests:functional

View file

@ -1,6 +1,6 @@
func-php8.1-v11-lowest: func-php8.1-v11-lowest:
extends: .default extends: .default
image: php:8.1 image: ghcr.io/sbuerk/demo-core-testing-php81:latest
services: services:
- mariadb:10 - mariadb:10
stage: test stage: test
@ -11,4 +11,4 @@ func-php8.1-v11-lowest:
- echo "Job ${CI_JOB_NAME}" - echo "Job ${CI_JOB_NAME}"
- composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5" - composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5"
- composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest - composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest
- wait-for-it mariadb:3306 -t 60 --strict -- composer ci:tests:functional - composer ci:tests:functional

View file

@ -1,6 +1,6 @@
func-php8.1-v11-highest: func-php8.1-v11-highest:
extends: .default extends: .default
image: php:8.1 image: ghcr.io/sbuerk/demo-core-testing-php81:latest
services: services:
- mariadb:10 - mariadb:10
stage: test stage: test
@ -11,4 +11,4 @@ func-php8.1-v11-highest:
- echo "Job ${CI_JOB_NAME}" - echo "Job ${CI_JOB_NAME}"
- composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^12.4" - composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^12.4"
- composer update --no-ansi --no-interaction --no-progress --with-dependencies - composer update --no-ansi --no-interaction --no-progress --with-dependencies
- wait-for-it mariadb:3306 -t 60 --strict -- composer ci:tests:functional - composer ci:tests:functional

View file

@ -1,6 +1,6 @@
func-php8.1-v11-lowest: func-php8.1-v11-lowest:
extends: .default extends: .default
image: php:8.1 image: ghcr.io/sbuerk/demo-core-testing-php81:latest
services: services:
- mariadb:10 - mariadb:10
stage: test stage: test
@ -11,4 +11,4 @@ func-php8.1-v11-lowest:
- echo "Job ${CI_JOB_NAME}" - echo "Job ${CI_JOB_NAME}"
- composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^12.4" - composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^12.4"
- composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest - composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest
- wait-for-it mariadb:3306 -t 60 --strict -- composer ci:tests:functional - composer ci:tests:functional

View file

@ -1,6 +1,6 @@
func-php8.2-v11-highest: func-php8.2-v11-highest:
extends: .default extends: .default
image: php:8.2 image: ghcr.io/sbuerk/demo-core-testing-php82:latest
services: services:
- mariadb:10 - mariadb:10
stage: test stage: test
@ -11,4 +11,4 @@ func-php8.2-v11-highest:
- echo "Job ${CI_JOB_NAME}" - echo "Job ${CI_JOB_NAME}"
- composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5" - composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5"
- composer update --no-ansi --no-interaction --no-progress --with-dependencies - composer update --no-ansi --no-interaction --no-progress --with-dependencies
- wait-for-it mariadb:3306 -t 60 --strict -- composer ci:tests:functional - composer ci:tests:functional

View file

@ -1,6 +1,6 @@
func-php8.2-v11-lowest: func-php8.2-v11-lowest:
extends: .default extends: .default
image: php:8.2 image: ghcr.io/sbuerk/demo-core-testing-php82:latest
services: services:
- mariadb:10 - mariadb:10
stage: test stage: test
@ -11,4 +11,4 @@ func-php8.2-v11-lowest:
- echo "Job ${CI_JOB_NAME}" - echo "Job ${CI_JOB_NAME}"
- composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5" - composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5"
- composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest - composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest
- wait-for-it mariadb:3306 -t 60 --strict -- composer ci:tests:functional - composer ci:tests:functional

View file

@ -1,6 +1,6 @@
func-php8.2-v11-highest: func-php8.2-v11-highest:
extends: .default extends: .default
image: php:8.2 image: ghcr.io/sbuerk/demo-core-testing-php82:latest
services: services:
- mariadb:10 - mariadb:10
stage: test stage: test
@ -11,4 +11,4 @@ func-php8.2-v11-highest:
- echo "Job ${CI_JOB_NAME}" - echo "Job ${CI_JOB_NAME}"
- composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^12.4" - composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^12.4"
- composer update --no-ansi --no-interaction --no-progress --with-dependencies - composer update --no-ansi --no-interaction --no-progress --with-dependencies
- wait-for-it mariadb:3306 -t 60 --strict -- composer ci:tests:functional - composer ci:tests:functional

View file

@ -1,6 +1,6 @@
func-php8.2-v12-lowest: func-php8.2-v12-lowest:
extends: .default extends: .default
image: php:8.2 image: ghcr.io/sbuerk/demo-core-testing-php82:latest
services: services:
- mariadb:10 - mariadb:10
stage: test stage: test
@ -11,4 +11,4 @@ func-php8.2-v12-lowest:
- echo "Job ${CI_JOB_NAME}" - echo "Job ${CI_JOB_NAME}"
- composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^12.4" - composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^12.4"
- composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest - composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest
- wait-for-it mariadb:3306 -t 60 --strict -- composer ci:tests:functional - composer ci:tests:functional

View file

@ -1,6 +1,6 @@
func-php8.3-v11-highest: func-php8.3-v11-highest:
extends: .default extends: .default
image: php:8.3 image: ghcr.io/sbuerk/demo-core-testing-php83:latest
services: services:
- mariadb:10 - mariadb:10
stage: test stage: test
@ -11,4 +11,4 @@ func-php8.3-v11-highest:
- echo "Job ${CI_JOB_NAME}" - echo "Job ${CI_JOB_NAME}"
- composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5" - composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5"
- composer update --no-ansi --no-interaction --no-progress --with-dependencies - composer update --no-ansi --no-interaction --no-progress --with-dependencies
- wait-for-it mariadb:3306 -t 60 --strict -- composer ci:tests:functional - composer ci:tests:functional

View file

@ -1,6 +1,6 @@
func-php8.3-v11-lowest: func-php8.3-v11-lowest:
extends: .default extends: .default
image: php:8.3 image: ghcr.io/sbuerk/demo-core-testing-php83:latest
services: services:
- mariadb:10 - mariadb:10
stage: test stage: test
@ -11,4 +11,4 @@ func-php8.3-v11-lowest:
- echo "Job ${CI_JOB_NAME}" - echo "Job ${CI_JOB_NAME}"
- composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5" - composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5"
- composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest - composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest
- wait-for-it mariadb:3306 -t 60 --strict -- composer ci:tests:functional - composer ci:tests:functional

View file

@ -1,6 +1,6 @@
func-php8.3-v11-highest: func-php8.3-v11-highest:
extends: .default extends: .default
image: php:8.3 image: ghcr.io/sbuerk/demo-core-testing-php83:latest
services: services:
- mariadb:10 - mariadb:10
stage: test stage: test
@ -11,4 +11,4 @@ func-php8.3-v11-highest:
- echo "Job ${CI_JOB_NAME}" - echo "Job ${CI_JOB_NAME}"
- composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^12.4" - composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^12.4"
- composer update --no-ansi --no-interaction --no-progress --with-dependencies - composer update --no-ansi --no-interaction --no-progress --with-dependencies
- wait-for-it mariadb:3306 -t 60 --strict -- composer ci:tests:functional - composer ci:tests:functional

View file

@ -1,6 +1,6 @@
func-php8.3-v12-lowest: func-php8.3-v12-lowest:
extends: .default extends: .default
image: php:8.3 image: ghcr.io/sbuerk/demo-core-testing-php83:latest
services: services:
- mariadb:10 - mariadb:10
stage: test stage: test
@ -11,4 +11,4 @@ func-php8.3-v12-lowest:
- echo "Job ${CI_JOB_NAME}" - echo "Job ${CI_JOB_NAME}"
- composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^12.4" - composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^12.4"
- composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest - composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest
- wait-for-it mariadb:3306 -t 60 --strict -- composer ci:tests:functional - composer ci:tests:functional

View file

@ -1,6 +1,5 @@
php-lint-php7.4: php-lint-php7.4:
extends: .default image: ghcr.io/sbuerk/demo-core-testing-php74:latest
image: php:7.4
stage: lint stage: lint
needs: [ ] needs: [ ]
script: script:

View file

@ -1,6 +1,5 @@
php-lint-php8.0: php-lint-php8.0:
extends: .default image: ghcr.io/sbuerk/demo-core-testing-php80:latest
image: php:8.0
stage: lint stage: lint
needs: [ ] needs: [ ]
script: script:

View file

@ -1,6 +1,5 @@
php-lint-php8.1: php-lint-php8.1:
extends: .default image: ghcr.io/sbuerk/demo-core-testing-php81:latest
image: php:8.1
stage: lint stage: lint
needs: [ ] needs: [ ]
script: script:

View file

@ -1,6 +1,5 @@
php-lint-php8.2: php-lint-php8.2:
extends: .default image: ghcr.io/sbuerk/demo-core-testing-php82:latest
image: php:8.2
stage: lint stage: lint
needs: [ ] needs: [ ]
script: script:

View file

@ -1,6 +1,5 @@
php-lint-php8.3: php-lint-php8.3:
extends: .default image: ghcr.io/sbuerk/demo-core-testing-php83:latest
image: php:8.3
stage: lint stage: lint
needs: [ ] needs: [ ]
script: script:

View file

@ -1,6 +1,6 @@
unit-php7.4-v11-highest: unit-php7.4-v11-highest:
extends: .default extends: .default
image: php:7.4 image: ghcr.io/sbuerk/demo-core-testing-php74:latest
stage: test stage: test
needs: needs:
- build-composer-dependencies - build-composer-dependencies

View file

@ -1,6 +1,6 @@
unit-php7.4-v11-lowest: unit-php7.4-v11-lowest:
extends: .default extends: .default
image: php:7.4 image: ghcr.io/sbuerk/demo-core-testing-php74:latest
stage: test stage: test
needs: needs:
- build-composer-dependencies - build-composer-dependencies

View file

@ -1,6 +1,6 @@
unit-php8.0-v11-highest: unit-php8.0-v11-highest:
extends: .default extends: .default
image: php:8.0 image: ghcr.io/sbuerk/demo-core-testing-php80:latest
stage: test stage: test
needs: needs:
- build-composer-dependencies - build-composer-dependencies

View file

@ -1,6 +1,6 @@
unit-php8.0-v11-lowest: unit-php8.0-v11-lowest:
extends: .default extends: .default
image: php:8.0 image: ghcr.io/sbuerk/demo-core-testing-php80:latest
stage: test stage: test
needs: needs:
- build-composer-dependencies - build-composer-dependencies

View file

@ -1,6 +1,6 @@
unit-php8.1-v11-highest: unit-php8.1-v11-highest:
extends: .default extends: .default
image: php:8.1 image: ghcr.io/sbuerk/demo-core-testing-php81:latest
stage: test stage: test
needs: needs:
- build-composer-dependencies - build-composer-dependencies

View file

@ -1,6 +1,6 @@
unit-php8.1-v11-lowest: unit-php8.1-v11-lowest:
extends: .default extends: .default
image: php:8.1 image: ghcr.io/sbuerk/demo-core-testing-php81:latest
stage: test stage: test
needs: needs:
- build-composer-dependencies - build-composer-dependencies

View file

@ -1,6 +1,6 @@
unit-php8.1-v12-highest: unit-php8.1-v12-highest:
extends: .default extends: .default
image: php:8.1 image: ghcr.io/sbuerk/demo-core-testing-php81:latest
stage: test stage: test
needs: needs:
- build-composer-dependencies - build-composer-dependencies

View file

@ -1,6 +1,6 @@
unit-php8.1-v12-lowest: unit-php8.1-v12-lowest:
extends: .default extends: .default
image: php:8.1 image: ghcr.io/sbuerk/demo-core-testing-php81:latest
stage: test stage: test
needs: needs:
- build-composer-dependencies - build-composer-dependencies

View file

@ -1,6 +1,6 @@
unit-php8.2-v11-highest: unit-php8.2-v11-highest:
extends: .default extends: .default
image: php:8.2 image: ghcr.io/sbuerk/demo-core-testing-php82:latest
stage: test stage: test
needs: needs:
- build-composer-dependencies - build-composer-dependencies

View file

@ -1,6 +1,6 @@
unit-php8.2-v11-lowest: unit-php8.2-v11-lowest:
extends: .default extends: .default
image: php:8.2 image: ghcr.io/sbuerk/demo-core-testing-php82:latest
stage: test stage: test
needs: needs:
- build-composer-dependencies - build-composer-dependencies

View file

@ -1,6 +1,6 @@
unit-php8.2-v12-highest: unit-php8.2-v12-highest:
extends: .default extends: .default
image: php:8.2 image: ghcr.io/sbuerk/demo-core-testing-php82:latest
stage: test stage: test
needs: needs:
- build-composer-dependencies - build-composer-dependencies

View file

@ -1,6 +1,6 @@
unit-php8.2-v12-lowest: unit-php8.2-v12-lowest:
extends: .default extends: .default
image: php:8.2 image: ghcr.io/sbuerk/demo-core-testing-php82:latest
stage: test stage: test
needs: needs:
- build-composer-dependencies - build-composer-dependencies

View file

@ -1,6 +1,6 @@
unit-php8.3-v11-highest: unit-php8.3-v11-highest:
extends: .default extends: .default
image: php:8.3 image: ghcr.io/sbuerk/demo-core-testing-php83:latest
stage: test stage: test
needs: needs:
- build-composer-dependencies - build-composer-dependencies

View file

@ -1,6 +1,6 @@
unit-php8.3-v11-lowest: unit-php8.3-v11-lowest:
extends: .default extends: .default
image: php:8.3 image: ghcr.io/sbuerk/demo-core-testing-php83:latest
stage: test stage: test
needs: needs:
- build-composer-dependencies - build-composer-dependencies

View file

@ -1,6 +1,6 @@
unit-php8.3-v12-highest: unit-php8.3-v12-highest:
extends: .default extends: .default
image: php:8.3 image: ghcr.io/sbuerk/demo-core-testing-php83:latest
stage: test stage: test
needs: needs:
- build-composer-dependencies - build-composer-dependencies

View file

@ -1,6 +1,6 @@
unit-php8.3-v12-lowest: unit-php8.3-v12-lowest:
extends: .default extends: .default
image: php:8.3 image: ghcr.io/sbuerk/demo-core-testing-php83:latest
stage: test stage: test
needs: needs:
- build-composer-dependencies - build-composer-dependencies