mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 08:15:14 +00:00
33 lines
762 B
YAML
33 lines
762 B
YAML
.docker_boostrap: &docker_boostrap |
|
|
[[ ! -e /.dockerenv ]] && exit 0
|
|
set -xe
|
|
|
|
# Install git (the php image doesn't have it) which is required by composer
|
|
apt-get update -yq
|
|
apt-get install git wget procps unzip -y
|
|
|
|
# Install pcntl and redis extentions
|
|
pecl install -o -f redis \
|
|
&& rm -rf /tmp/pear \
|
|
&& docker-php-ext-enable redis
|
|
docker-php-ext-install pcntl
|
|
|
|
# Hack to fix mismatched php versions
|
|
rm composer.lock
|
|
|
|
# Install Composer
|
|
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.dist
|
|
tags:
|
|
- docker |