before.sh in SendGrid Integration 7
Same filename and directory in other branches
#!/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.shView source
- #!/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
-