mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 05:32:20 +00:00
Fix paths
This commit is contained in:
parent
3b4d2e4c1f
commit
5a94c021da
2 changed files with 12 additions and 7 deletions
|
@ -4,13 +4,18 @@
|
|||
|
||||
# Install git (the php image doesn't have it) which is required by composer
|
||||
apt-get update -yq
|
||||
apt-get install git wget -y
|
||||
apt-get install git wget procps -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
|
||||
|
||||
|
@ -25,7 +30,7 @@ test:7.0:
|
|||
script:
|
||||
- curl --location --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit-6.5.9.phar
|
||||
- chmod +x /usr/local/bin/phpunit
|
||||
- phpunit --configuration phpunit.xml.dist
|
||||
- phpunit --verbose --configuration phpunit.xml.dist
|
||||
tags:
|
||||
- docker
|
||||
|
||||
|
@ -37,7 +42,7 @@ test:7.1:
|
|||
script:
|
||||
- curl --location --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit-7.5.9.phar
|
||||
- chmod +x /usr/local/bin/phpunit
|
||||
- phpunit --configuration phpunit.xml.dist
|
||||
- phpunit --verbose --configuration phpunit.xml.dist
|
||||
tags:
|
||||
- docker
|
||||
|
||||
|
@ -47,9 +52,9 @@ test:7.2:
|
|||
before_script:
|
||||
- *docker_boostrap
|
||||
script:
|
||||
- curl --location --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar
|
||||
- curl --location --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit-7.5.9.phar
|
||||
- chmod +x /usr/local/bin/phpunit
|
||||
- phpunit --configuration phpunit.xml.dist
|
||||
- phpunit --verbose --configuration phpunit.xml.dist
|
||||
tags:
|
||||
- docker
|
||||
|
||||
|
@ -61,6 +66,6 @@ test:7.3:
|
|||
script:
|
||||
- curl --location --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar
|
||||
- chmod +x /usr/local/bin/phpunit
|
||||
- phpunit --configuration phpunit.xml.dist
|
||||
- phpunit --verbose --configuration phpunit.xml.dist
|
||||
tags:
|
||||
- docker
|
||||
|
|
|
@ -12,7 +12,7 @@ $loader->add('Resque_Tests', __DIR__);
|
|||
|
||||
# Redis configuration
|
||||
global $redisTestServer;
|
||||
$redisTestServer = getenv("REDIS_SERVER") ?? "redis";
|
||||
$redisTestServer = getenv("REDIS_SERVER") ?: "redis";
|
||||
Resque::setBackend($redisTestServer);
|
||||
|
||||
# Check Redis is accessable locally
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue