.travis-before-script.sh 474 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. set -e $DRUPAL_TI_DEBUG
  3. # Ensure the right Drupal version is installed.
  4. # Note: This function is re-entrant.
  5. drupal_ti_ensure_drupal
  6. # Add needed dependencies.
  7. cd "$DRUPAL_TI_DRUPAL_DIR"
  8. # Download predis
  9. composer require predis/predis
  10. # These variables come from environments/drupal-*.sh
  11. mkdir -p "$DRUPAL_TI_MODULES_PATH"
  12. cd "$DRUPAL_TI_MODULES_PATH"
  13. #Enable php-redis
  14. echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini