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