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
- #!/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