You are here

install.sh in General Data Protection Regulation 8.2

#!/usr/bin/env bash

# Debug.
{ echo "# DEBUG - PHP Mem limit" ; php -ini | grep memory_limit ; }
echo "# Preparing GIT repos"

# Remove the git details from our repo so we can treat it as a path.
cd ${TRAVIS_BUILD_DIR}
rm .git -rf

# Create our main Drupal project.
echo "# Creating Drupal project"
composer create-project drupal/drupal-recommended-project:${DRUPAL_CORE} ${DRUPAL_BUILD_ROOT}/drupal --stability dev --no-interaction
cd ${DRUPAL_BUILD_ROOT}/drupal

# Set our drupal core version.
composer require --dev --no-update drupal/coder wimg/php-compatibility jakub-onderka/php-parallel-lint jakub-onderka/php-console-highlighter

# Add our repositories for gdpr, as well as re-adding the Drupal package repo.
echo "# Configuring package repos"
composer config repositories.0 path ${TRAVIS_BUILD_DIR}

# Now require contacts which will pull itself from the paths.
echo "# Requiring gdpr"
composer require drupal/gdpr dev-master

File

travis-ci/install.sh
View source
  1. #!/usr/bin/env bash
  2. # Debug.
  3. { echo "# DEBUG - PHP Mem limit" ; php -ini | grep memory_limit ; }
  4. echo "# Preparing GIT repos"
  5. # Remove the git details from our repo so we can treat it as a path.
  6. cd ${TRAVIS_BUILD_DIR}
  7. rm .git -rf
  8. # Create our main Drupal project.
  9. echo "# Creating Drupal project"
  10. composer create-project drupal/drupal-recommended-project:${DRUPAL_CORE} ${DRUPAL_BUILD_ROOT}/drupal --stability dev --no-interaction
  11. cd ${DRUPAL_BUILD_ROOT}/drupal
  12. # Set our drupal core version.
  13. composer require --dev --no-update drupal/coder wimg/php-compatibility jakub-onderka/php-parallel-lint jakub-onderka/php-console-highlighter
  14. # Add our repositories for gdpr, as well as re-adding the Drupal package repo.
  15. echo "# Configuring package repos"
  16. composer config repositories.0 path ${TRAVIS_BUILD_DIR}
  17. # Now require contacts which will pull itself from the paths.
  18. echo "# Requiring gdpr"
  19. composer require drupal/gdpr dev-master