mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 00:11:53 +00:00
Update gitlab CI
This commit is contained in:
parent
6458563051
commit
ba52eb34c7
@ -16,22 +16,15 @@
|
||||
wget https://getcomposer.org/composer.phar
|
||||
php composer.phar install --dev
|
||||
|
||||
# Test PHP
|
||||
test:
|
||||
image: php:$PHP_VERSION
|
||||
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
|
||||
- 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
|
||||
|
@ -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
|
@ -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
|
Loading…
Reference in New Issue
Block a user