mirror of
https://github.com/moodle/moodle.git
synced 2025-08-11 20:06:46 +02:00
MDL-60951 travis: Disable redis on travis
Redis unit tests are currently failing on php 7.2 due to https://bugs.php.net/bug.php?id=75628
This commit is contained in:
parent
1bc5a5abe9
commit
1fb4f49cca
1 changed files with 8 additions and 5 deletions
13
.travis.yml
13
.travis.yml
|
@ -23,8 +23,9 @@ addons:
|
||||||
- mysql-client-core-5.6
|
- mysql-client-core-5.6
|
||||||
- mysql-client-5.6
|
- mysql-client-5.6
|
||||||
|
|
||||||
services:
|
# Redis tests are currently failing on php 7.2 due to https://bugs.php.net/bug.php?id=75628
|
||||||
- redis-server
|
# services:
|
||||||
|
# - redis-server
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# Although we want to run these jobs and see failures as quickly as possible, we also want to get the slowest job to
|
# Although we want to run these jobs and see failures as quickly as possible, we also want to get the slowest job to
|
||||||
|
@ -99,8 +100,9 @@ install:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Enable Redis.
|
# Enable Redis.
|
||||||
echo 'extension="redis.so"' > /tmp/redis.ini
|
# Redis tests are currently failing on php 7.2 due to https://bugs.php.net/bug.php?id=75628
|
||||||
phpenv config-add /tmp/redis.ini
|
# echo 'extension="redis.so"' > /tmp/redis.ini
|
||||||
|
# phpenv config-add /tmp/redis.ini
|
||||||
|
|
||||||
# Install composer dependencies.
|
# Install composer dependencies.
|
||||||
# We need --no-interaction in case we hit API limits for composer. This causes it to fall back to a standard clone.
|
# We need --no-interaction in case we hit API limits for composer. This causes it to fall back to a standard clone.
|
||||||
|
@ -171,10 +173,11 @@ before_script:
|
||||||
mkdir -p "$HOME"/roots/phpunit
|
mkdir -p "$HOME"/roots/phpunit
|
||||||
|
|
||||||
# The phpunit dataroot and prefix..
|
# The phpunit dataroot and prefix..
|
||||||
|
# Redis tests are currently failing on php 7.2 due to https://bugs.php.net/bug.php?id=75628
|
||||||
|
# -e "/require_once/i \\define('TEST_SESSION_REDIS_HOST', '127.0.0.1');" \
|
||||||
sed -i \
|
sed -i \
|
||||||
-e "/require_once/i \\\$CFG->phpunit_dataroot = '\/home\/travis\/roots\/phpunit';" \
|
-e "/require_once/i \\\$CFG->phpunit_dataroot = '\/home\/travis\/roots\/phpunit';" \
|
||||||
-e "/require_once/i \\\$CFG->phpunit_prefix = 'p_';" \
|
-e "/require_once/i \\\$CFG->phpunit_prefix = 'p_';" \
|
||||||
-e "/require_once/i \\define('TEST_SESSION_REDIS_HOST', '127.0.0.1');" \
|
|
||||||
config.php ;
|
config.php ;
|
||||||
|
|
||||||
# Initialise PHPUnit for Moodle.
|
# Initialise PHPUnit for Moodle.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue