You are here

before.sh in SendGrid Integration 8.2

Same filename and directory in other branches
  1. 8 tests/before.sh
  2. 7 tests/before.sh
#!/bin/bash

# Simple script to install drupal for travis-ci running.

set -e $DRUPAL_TI_DEBUG

# Ensure the right Drupal version is installed.
echo "Ensure the right Drupal Version."
drupal_ti_ensure_drupal

# Enable simpletest module.
cd "$DRUPAL_TI_DRUPAL_DIR"
echo "DRUPAL TI - Drush Enable Simpletest module"
drush --yes en simpletest
echo "DRUPAL TI - Download Composer module and enable"
drush dl composer-8.x-1.x
echo "DRUPAL TI - Clear Drush cache"
drush cc drush
drush cache-rebuild
echo "DRUPAL TI - Delete cache dir"
rm -f "$DRUPAL_TI_CACHE_DIR"/HOME/.drush/cache
drush dl maillog
drush en -y maillog

# Ensure the module is linked into the code base and enabled.
echo "DRUPAL TI - Ensure the module is linked into the code base and enabled"
drupal_ti_ensure_module

# Clear caches and run a web server.
echo "DRUPAL TI - Clear caches"
drupal_ti_clear_caches
echo "DRUPAL TI - Run a web server"
drupal_ti_run_server

File

tests/before.sh
View source
  1. #!/bin/bash
  2. # Simple script to install drupal for travis-ci running.
  3. set -e $DRUPAL_TI_DEBUG
  4. # Ensure the right Drupal version is installed.
  5. echo "Ensure the right Drupal Version."
  6. drupal_ti_ensure_drupal
  7. # Enable simpletest module.
  8. cd "$DRUPAL_TI_DRUPAL_DIR"
  9. echo "DRUPAL TI - Drush Enable Simpletest module"
  10. drush --yes en simpletest
  11. echo "DRUPAL TI - Download Composer module and enable"
  12. drush dl composer-8.x-1.x
  13. echo "DRUPAL TI - Clear Drush cache"
  14. drush cc drush
  15. drush cache-rebuild
  16. echo "DRUPAL TI - Delete cache dir"
  17. rm -f "$DRUPAL_TI_CACHE_DIR"/HOME/.drush/cache
  18. drush dl maillog
  19. drush en -y maillog
  20. # Ensure the module is linked into the code base and enabled.
  21. echo "DRUPAL TI - Ensure the module is linked into the code base and enabled"
  22. drupal_ti_ensure_module
  23. # Clear caches and run a web server.
  24. echo "DRUPAL TI - Clear caches"
  25. drupal_ti_clear_caches
  26. echo "DRUPAL TI - Run a web server"
  27. drupal_ti_run_server