mirror of
https://github.com/moodle/moodle.git
synced 2025-08-02 23:59:41 +02:00
MDL-55518 travis: Enable redis tests
This commit is contained in:
parent
6a69cda97d
commit
8ad2afd316
1 changed files with 8 additions and 0 deletions
|
@ -16,6 +16,9 @@ php:
|
||||||
- 7.0
|
- 7.0
|
||||||
- 5.6
|
- 5.6
|
||||||
|
|
||||||
|
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
|
||||||
# start first so that the total run time is not too high.
|
# start first so that the total run time is not too high.
|
||||||
|
@ -78,6 +81,10 @@ install:
|
||||||
echo 'auth.json' >> .git/info/exclude
|
echo 'auth.json' >> .git/info/exclude
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Enable Redis.
|
||||||
|
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.
|
||||||
# Typically it should be able to use the Composer cache if any other job has already completed before we started here.
|
# Typically it should be able to use the Composer cache if any other job has already completed before we started here.
|
||||||
|
@ -147,6 +154,7 @@ before_script:
|
||||||
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