You are here

install.sh in General Data Protection Regulation 8

#!/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-composer/drupal-project:8.x-dev ${DRUPAL_BUILD_ROOT}/drupal --stability dev --no-interaction --no-install
cd ${DRUPAL_BUILD_ROOT}/drupal

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

# We do not need drupal console and drush (required by drupal-project) for tests.
composer remove drupal/console drush/drush --no-update

# 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}
composer config repositories.1 composer https://packages.drupal.org/8
composer config extra.enable-patching true

# 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-composer/drupal-project:8.x-dev ${DRUPAL_BUILD_ROOT}/drupal --stability dev --no-interaction --no-install
  11. cd ${DRUPAL_BUILD_ROOT}/drupal
  12. # Set our drupal core version.
  13. composer require --no-update drupal/core ${DRUPAL_CORE}
  14. composer require --dev --no-update drupal/coder wimg/php-compatibility jakub-onderka/php-parallel-lint jakub-onderka/php-console-highlighter
  15. # We do not need drupal console and drush (required by drupal-project) for tests.
  16. composer remove drupal/console drush/drush --no-update
  17. # Add our repositories for gdpr, as well as re-adding the Drupal package repo.
  18. echo "# Configuring package repos"
  19. composer config repositories.0 path ${TRAVIS_BUILD_DIR}
  20. composer config repositories.1 composer https://packages.drupal.org/8
  21. composer config extra.enable-patching true
  22. # Now require contacts which will pull itself from the paths.
  23. echo "# Requiring gdpr"
  24. composer require drupal/gdpr dev-master