Update gitlab CI

This commit is contained in:
idanoo 2023-02-07 14:20:30 +13:00
parent 6458563051
commit ba52eb34c7
Signed by: idanoo
GPG Key ID: 387387CDBC02F132
3 changed files with 10 additions and 51 deletions

View File

@ -16,22 +16,15 @@
wget https://getcomposer.org/composer.phar
php composer.phar install --dev
services:
- redis:latest
# Test PHP 7.4
test:7.4:
image: php:7.4
before_script:
- *docker_boostrap
script:
- php vendor/bin/phpunit --verbose --configuration phpunit.xml
tags:
- docker
# Test PHP 8.0
test:8.1:
image: php:8.1
# Test PHP
test:
image: php:$PHP_VERSION
services:
- redis:$REDIS_VERSION
parallel:
matrix:
- PHP_VERSION: [7.4, 8.0, 8.1, 8.2]
REDIS_VERSION: [7]
before_script:
- *docker_boostrap
script:
@ -41,7 +34,7 @@ test:8.1:
# Codestandards
lint:
image: php:8.1
image: php:8.2
allow_failure: true
script:
- apt update && apt install -y wget unzip git

View File

@ -1,8 +0,0 @@
pipeline:
lint:
image: php:8.1-cli
commands:
- apt update && apt install -y wget unzip git
- wget https://getcomposer.org/download/latest-stable/composer.phar
- php composer.phar install --dev
- php -d memory_limit=256M vendor/bin/phpcs -s --standard=ruleset.xml

View File

@ -1,26 +0,0 @@
matrix:
PHP_VERSION:
- 7.4
- 8.0
- 8.1
- 8.2
pipeline:
unit-tests:
image: php:${PHP_VERSION}-cli
commands:
- apt-get update -yq
- apt-get install git wget procps unzip -y
- pecl install -o -f redis && rm -rf /tmp/pear
- docker-php-ext-enable redis
- docker-php-ext-install pcntl
- wget https://getcomposer.org/download/latest-stable/composer.phar
- php composer.phar install --dev
- php vendor/bin/phpunit --verbose --configuration phpunit.xml
services:
redis:
image: redis:7
depends_on:
- lint