Skip to content

Commit d05cce0

Browse files
authored
Merge pull request #100 from stronk7/disable_redis_session_tests
Disable Redis session tests for PHP 7.2 and up
2 parents 49d6665 + 31e1a67 commit d05cce0

File tree

2 files changed

+25
-17
lines changed

2 files changed

+25
-17
lines changed

.travis.yml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,27 @@ language: bash
22
services: docker
33
fast_finish: true
44
env:
5-
- "PHP=7.1 DB=pgsql SUITE=phpunit-full"
6-
- "PHP=7.0 DB=pgsql SUITE=phpunit"
7-
- "PHP=5.6 DB=pgsql SUITE=phpunit"
8-
- "PHP=7.1 DB=oracle SUITE=phpunit"
9-
- "PHP=5.6 DB=oracle SUITE=phpunit"
10-
- "PHP=7.1 DB=mssql SUITE=phpunit"
11-
- "PHP=5.6 DB=mssql SUITE=phpunit"
12-
- "PHP=7.1 DB=mysql SUITE=phpunit"
13-
- "PHP=5.6 DB=mariadb SUITE=phpunit"
14-
- "PHP=7.0 DB=pgsql SUITE=behat BROWSER=firefox"
15-
- "PHP=7.0 DB=pgsql SUITE=behat BROWSER=chrome"
16-
- "PHP=7.0 DB=oracle SUITE=behat BROWSER=firefox"
17-
- "PHP=7.0 DB=mssql SUITE=behat BROWSER=firefox"
18-
- "PHP=7.0 DB=mysql SUITE=behat BROWSER=firefox"
19-
- "PHP=7.0 DB=mariadb SUITE=behat BROWSER=firefox"
5+
# Oracle jobs have been removed because there aren't public images anymore.
6+
- "PHP=7.3 DB=pgsql GIT=v3.7.0 SUITE=phpunit-full"
7+
- "PHP=7.2 DB=pgsql GIT=v3.7.0 SUITE=phpunit"
8+
- "PHP=7.1 DB=pgsql GIT=v3.7.0 SUITE=phpunit"
9+
- "PHP=7.0 DB=pgsql GIT=v3.3.5 SUITE=phpunit"
10+
- "PHP=5.6 DB=pgsql GIT=v3.3.5 SUITE=phpunit"
11+
- "PHP=7.3 DB=mssql GIT=v3.7.0 SUITE=phpunit"
12+
- "PHP=5.6 DB=mssql GIT=v3.3.5 SUITE=phpunit"
13+
- "PHP=7.3 DB=mysql GIT=v3.7.0 SUITE=phpunit"
14+
- "PHP=5.6 DB=mariadb GIT=v3.3.5 SUITE=phpunit"
15+
- "PHP=7.3 DB=pgsql GIT=v3.7.0 SUITE=behat BROWSER=chrome"
16+
- "PHP=7.2 DB=pgsql GIT=v3.7.0 SUITE=behat BROWSER=firefox"
17+
- "PHP=7.1 DB=pgsql GIT=v3.7.0 SUITE=behat BROWSER=chrome"
18+
- "PHP=7.0 DB=pgsql GIT=v3.3.5 SUITE=behat BROWSER=firefox"
19+
- "PHP=5.6 DB=pgsql GIT=v3.3.5 SUITE=behat BROWSER=chrome"
20+
- "PHP=7.3 DB=mssql GIT=v3.7.0 SUITE=behat BROWSER=firefox"
21+
- "PHP=7.0 DB=mssql GIT=v3.3.5 SUITE=behat BROWSER=chrome"
22+
- "PHP=7.3 DB=mysql GIT=v3.7.0 SUITE=behat BROWSER=firefox"
23+
- "PHP=7.0 DB=mariadb GIT=v3.3.5 SUITE=behat BROWSER=chrome"
2024
install:
21-
- git clone --branch v3.3.5 --depth 1 git://github.com/moodle/moodle $HOME/moodle
25+
- git clone --branch $GIT --depth 1 git://github.com/moodle/moodle $HOME/moodle
2226
- cp config.docker-template.php $HOME/moodle/config.php
2327
- export MOODLE_DOCKER_DB=$DB
2428
- export MOODLE_DOCKER_BROWSER=$BROWSER

config.docker-template.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@
5858
define('TEST_SEARCH_SOLR_INDEXNAME', 'test');
5959
define('TEST_SEARCH_SOLR_PORT', 8983);
6060

61-
define('TEST_SESSION_REDIS_HOST', 'redis');
61+
// We need to keep Redis session tests disabled for PHP 7.2 and up. See MDL-60978.
62+
if (version_compare(PHP_VERSION, '7.2.0', '<')) {
63+
define('TEST_SESSION_REDIS_HOST', 'redis');
64+
}
65+
6266
define('TEST_CACHESTORE_REDIS_TESTSERVERS', 'redis');
6367

6468
define('TEST_CACHESTORE_MONGODB_TESTSERVER', 'mongodb://mongo:27017');

0 commit comments

Comments
 (0)