From 0764aa9f0f9692914023869b60c48fbcccd13282 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Wed, 24 Nov 2021 13:35:53 +0100 Subject: [PATCH] Add PHP 8.0 to CI --- .gitlab-ci.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f49586c..12ed4a6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,6 +13,12 @@ test:composer: script: - composer validate --no-check-publish --strict +test:php:8.0: + image: php:8.0-alpine + stage: test + script: + - find *.php Classes Configuration -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l + test:php:7.4: image: php:7.4-alpine stage: test @@ -49,25 +55,34 @@ test:cgl: - composer install --prefer-dist --no-progress - ./vendor/bin/ecs check --no-progress-bar --clear-cache --fix -test:phpstan: +test:phpstan:8.0: + image: php:8.0-alpine + stage: test + before_script: + script: + - composer install --prefer-dist --no-progress + - php -d memory_limit=-1 ./vendor/bin/phpstan --no-progress + +test:phpstan:7.4: image: php:7.4-alpine stage: test before_script: script: - composer install --prefer-dist --no-progress + - php -d memory_limit=-1 ./vendor/bin/phpstan --no-progress -test:phpstan: +test:phpstan: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/phpstan --no-progress -test:phpstan: +test:phpstan: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/phpstan --no-progress - - php -d memory_limit=-1 ./vendor/bin/phpstan --no-progress