You are here

before_script.sh in D7 Media 8

#!/bin/bash

# Add an optional statement to see that this is running in Travis CI.
echo "running drupal_ti/before/before_script.sh"

set -e $DRUPAL_TI_DEBUG

# Ensure the right Drupal version is installed.
# The first time this is run, it will install Drupal.
# Note: This function is re-entrant.
drupal_ti_ensure_drupal

# Change to the Drupal directory
cd "$DRUPAL_TI_DRUPAL_DIR"

# Create the the module directory (only necessary for D7)
# For D7, this is sites/default/modules
# For D8, this is modules
mkdir -p "$DRUPAL_TI_DRUPAL_DIR/$DRUPAL_TI_LIBRARIES_PATH"
cd "$DRUPAL_TI_DRUPAL_DIR"

# Manually clone the dependencies
mkdir libraries
cd libraries
git clone --depth 1 https://github.com/enyo/dropzone.git

File

drupal_ti/before/before_script.sh
View source
  1. #!/bin/bash
  2. # Add an optional statement to see that this is running in Travis CI.
  3. echo "running drupal_ti/before/before_script.sh"
  4. set -e $DRUPAL_TI_DEBUG
  5. # Ensure the right Drupal version is installed.
  6. # The first time this is run, it will install Drupal.
  7. # Note: This function is re-entrant.
  8. drupal_ti_ensure_drupal
  9. # Change to the Drupal directory
  10. cd "$DRUPAL_TI_DRUPAL_DIR"
  11. # Create the the module directory (only necessary for D7)
  12. # For D7, this is sites/default/modules
  13. # For D8, this is modules
  14. mkdir -p "$DRUPAL_TI_DRUPAL_DIR/$DRUPAL_TI_LIBRARIES_PATH"
  15. cd "$DRUPAL_TI_DRUPAL_DIR"
  16. # Manually clone the dependencies
  17. mkdir libraries
  18. cd libraries
  19. git clone --depth 1 https://github.com/enyo/dropzone.git