mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-09-19 18:36:12 +02: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
apt-get update -yqq
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
apk add parallel

View file

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

View file

@ -1,6 +1,6 @@
func-php7.4-v11-highest:
extends: .default
image: php:7.4
image: ghcr.io/sbuerk/demo-core-testing-php74:latest
services:
- mariadb:10
stage: test
@ -11,4 +11,4 @@ func-php7.4-v11-highest:
- echo "Job ${CI_JOB_NAME}"
- 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
- 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:
extends: .default
image: php:7.4
image: ghcr.io/sbuerk/demo-core-testing-php74:latest
services:
- mariadb:10
stage: test
@ -11,4 +11,4 @@ func-php7.4-v11-lowest:
- echo "Job ${CI_JOB_NAME}"
- 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
- 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:
extends: .default
image: php:8.0
image: ghcr.io/sbuerk/demo-core-testing-php80:latest
services:
- mariadb:10
stage: test
@ -11,4 +11,4 @@ func-php8.0-v11-highest:
- echo "Job ${CI_JOB_NAME}"
- 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
- 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:
extends: .default
image: php:8.0
image: ghcr.io/sbuerk/demo-core-testing-php80:latest
services:
- mariadb:10
stage: test
@ -11,4 +11,4 @@ func-php8.0-v11-lowest:
- echo "Job ${CI_JOB_NAME}"
- 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
- 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:
extends: .default
image: php:8.1
image: ghcr.io/sbuerk/demo-core-testing-php81:latest
services:
- mariadb:10
stage: test
@ -11,4 +11,4 @@ func-php8.1-v11-highest:
- echo "Job ${CI_JOB_NAME}"
- 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
- 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:
extends: .default
image: php:8.1
image: ghcr.io/sbuerk/demo-core-testing-php81:latest
services:
- mariadb:10
stage: test
@ -11,4 +11,4 @@ func-php8.1-v11-lowest:
- echo "Job ${CI_JOB_NAME}"
- 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
- 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:
extends: .default
image: php:8.1
image: ghcr.io/sbuerk/demo-core-testing-php81:latest
services:
- mariadb:10
stage: test
@ -11,4 +11,4 @@ func-php8.1-v11-highest:
- echo "Job ${CI_JOB_NAME}"
- 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
- 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:
extends: .default
image: php:8.1
image: ghcr.io/sbuerk/demo-core-testing-php81:latest
services:
- mariadb:10
stage: test
@ -11,4 +11,4 @@ func-php8.1-v11-lowest:
- echo "Job ${CI_JOB_NAME}"
- 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
- 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:
extends: .default
image: php:8.2
image: ghcr.io/sbuerk/demo-core-testing-php82:latest
services:
- mariadb:10
stage: test
@ -11,4 +11,4 @@ func-php8.2-v11-highest:
- echo "Job ${CI_JOB_NAME}"
- 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
- 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:
extends: .default
image: php:8.2
image: ghcr.io/sbuerk/demo-core-testing-php82:latest
services:
- mariadb:10
stage: test
@ -11,4 +11,4 @@ func-php8.2-v11-lowest:
- echo "Job ${CI_JOB_NAME}"
- 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
- 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:
extends: .default
image: php:8.2
image: ghcr.io/sbuerk/demo-core-testing-php82:latest
services:
- mariadb:10
stage: test
@ -11,4 +11,4 @@ func-php8.2-v11-highest:
- echo "Job ${CI_JOB_NAME}"
- 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
- 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:
extends: .default
image: php:8.2
image: ghcr.io/sbuerk/demo-core-testing-php82:latest
services:
- mariadb:10
stage: test
@ -11,4 +11,4 @@ func-php8.2-v12-lowest:
- echo "Job ${CI_JOB_NAME}"
- 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
- 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:
extends: .default
image: php:8.3
image: ghcr.io/sbuerk/demo-core-testing-php83:latest
services:
- mariadb:10
stage: test
@ -11,4 +11,4 @@ func-php8.3-v11-highest:
- echo "Job ${CI_JOB_NAME}"
- 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
- 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:
extends: .default
image: php:8.3
image: ghcr.io/sbuerk/demo-core-testing-php83:latest
services:
- mariadb:10
stage: test
@ -11,4 +11,4 @@ func-php8.3-v11-lowest:
- echo "Job ${CI_JOB_NAME}"
- 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
- 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:
extends: .default
image: php:8.3
image: ghcr.io/sbuerk/demo-core-testing-php83:latest
services:
- mariadb:10
stage: test
@ -11,4 +11,4 @@ func-php8.3-v11-highest:
- echo "Job ${CI_JOB_NAME}"
- 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
- 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:
extends: .default
image: php:8.3
image: ghcr.io/sbuerk/demo-core-testing-php83:latest
services:
- mariadb:10
stage: test
@ -11,4 +11,4 @@ func-php8.3-v12-lowest:
- echo "Job ${CI_JOB_NAME}"
- 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
- 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:
extends: .default
image: php:7.4
image: ghcr.io/sbuerk/demo-core-testing-php74:latest
stage: lint
needs: [ ]
script:

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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