You are here

before.sh in SendGrid Integration 7

Same filename and directory in other branches
  1. 8.2 tests/before.sh
  2. 8 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 cc all
echo "DRUPAL TI - Delete cache dir"
rm -f "$DRUPAL_TI_CACHE_DIR"/HOME/.drush/cache
# Download required modules.
drush dl maillog
drush en -y maillog
drush dl composer_manager
drush en -y composer_manager
drush dl -y composer-8.x-1.x
# We have to pull the API wrapper because we made it a soft requirement in the module.
drush composer-manager require fastglass/sendgrid


# 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 cc all
  16. echo "DRUPAL TI - Delete cache dir"
  17. rm -f "$DRUPAL_TI_CACHE_DIR"/HOME/.drush/cache
  18. # Download required modules.
  19. drush dl maillog
  20. drush en -y maillog
  21. drush dl composer_manager
  22. drush en -y composer_manager
  23. drush dl -y composer-8.x-1.x
  24. # We have to pull the API wrapper because we made it a soft requirement in the module.
  25. drush composer-manager require fastglass/sendgrid
  26. # Ensure the module is linked into the code base and enabled.
  27. echo "DRUPAL TI - Ensure the module is linked into the code base and enabled"
  28. drupal_ti_ensure_module
  29. # Clear caches and run a web server.
  30. echo "DRUPAL TI - Clear caches"
  31. drupal_ti_clear_caches
  32. echo "DRUPAL TI - Run a web server"
  33. drupal_ti_run_server