Skip to content

Commit

Permalink
Merge pull request #223 from catalyst/issue190-redis
Browse files Browse the repository at this point in the history
Closes #190 - Added Redis to Travis.
  • Loading branch information
roperto authored Mar 9, 2018
2 parents da316eb + 878e79a commit 5173472
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ addons:
packages:
- oracle-java9-installer
- oracle-java9-set-default
- redis-server

services:
- redis-server

cache:
directories:
Expand Down Expand Up @@ -48,6 +52,7 @@ before_install:
- if [ "$MOODLE_VERSION" = "master" ] || [ "$MOODLE_VERSION" -ge 32 ]; then export CI=2; else export CI=1; fi
- echo $CI
- phpenv config-rm xdebug.ini
- echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- tests/idp/simplesamlphp.sh
- cd ../..
- if [ "$CI" = 2 ]; then
Expand All @@ -62,6 +67,7 @@ before_install:
install:
- moodle-plugin-ci install -vvv
- echo '$CFG->cookiesecure = false;' >> moodle/config.php
- moodle-plugin-ci add-config 'define("AUTH_SAML2_REDIS_STORE_TEST_SERVER", "127.0.0.1");'

script:
- moodle-plugin-ci validate
Expand Down

0 comments on commit 5173472

Please sign in to comment.