You are here

03-build-thunder-composer.sh in Thunder 8.3

Same filename and directory in other branches
  1. 8.2 scripts/travis/03-build-thunder-composer.sh
#!/usr/bin/env bash

# Download latest Thunder release for update
if [[ ${TEST_UPDATE} == "true" ]]; then
    # Download latest release from drupal.org
    mkdir -p $UPDATE_BASE_PATH
    cd $UPDATE_BASE_PATH
    drush dl thunder --drupal-project-rename="docroot" -y
    composer install --working-dir=${UPDATE_BASE_PATH}/docroot
fi

cd ${THUNDER_DIST_DIR}
composer create-project thunder/thunder-project:3.0.3 ${TEST_DIR} --stability dev --no-interaction --no-install

cd ${TEST_DIR}

if [[ ${TEST_UPDATE} == "true" ]]; then
    sed -i 's/docroot\/profiles\/contrib/docroot\/profiles/g' composer.json
fi

composer config repositories.thunder path ${THUNDER_DIST_DIR}
composer require "thunder/thunder-distribution:*" "thunder/thunder_testing_demo:3.x-dev" "phpunit/phpunit:^6.5" "symfony/browser-kit:^4.0.0" "mglaman/phpstan-drupal" "phpstan/phpstan:~0.12.0" "phpstan/phpstan-deprecation-rules:~0.12.0" "drupal/riddle_marketplace:^3.0-beta2" "drupal/nexx_integration:^1.0" "valiton/harbourmaster:~8.1" --no-progress ${ADDITIONAL_COMPOSER_PARAMETERS}

 # Get custom branch of Thunder Admin theme
rm -rf ${TEST_DIR}/docroot/themes/contrib/thunder_admin
git clone --depth 1 --single-branch --branch ${THUNDER_ADMIN_BRANCH} https://github.com/BurdaMagazinOrg/theme-thunder-admin.git ${TEST_DIR}/docroot/themes/contrib/thunder_admin

File

scripts/travis/03-build-thunder-composer.sh
View source
  1. #!/usr/bin/env bash
  2. # Download latest Thunder release for update
  3. if [[ ${TEST_UPDATE} == "true" ]]; then
  4. # Download latest release from drupal.org
  5. mkdir -p $UPDATE_BASE_PATH
  6. cd $UPDATE_BASE_PATH
  7. drush dl thunder --drupal-project-rename="docroot" -y
  8. composer install --working-dir=${UPDATE_BASE_PATH}/docroot
  9. fi
  10. cd ${THUNDER_DIST_DIR}
  11. composer create-project thunder/thunder-project:3.0.3 ${TEST_DIR} --stability dev --no-interaction --no-install
  12. cd ${TEST_DIR}
  13. if [[ ${TEST_UPDATE} == "true" ]]; then
  14. sed -i 's/docroot\/profiles\/contrib/docroot\/profiles/g' composer.json
  15. fi
  16. composer config repositories.thunder path ${THUNDER_DIST_DIR}
  17. composer require "thunder/thunder-distribution:*" "thunder/thunder_testing_demo:3.x-dev" "phpunit/phpunit:^6.5" "symfony/browser-kit:^4.0.0" "mglaman/phpstan-drupal" "phpstan/phpstan:~0.12.0" "phpstan/phpstan-deprecation-rules:~0.12.0" "drupal/riddle_marketplace:^3.0-beta2" "drupal/nexx_integration:^1.0" "valiton/harbourmaster:~8.1" --no-progress ${ADDITIONAL_COMPOSER_PARAMETERS}
  18. # Get custom branch of Thunder Admin theme
  19. rm -rf ${TEST_DIR}/docroot/themes/contrib/thunder_admin
  20. git clone --depth 1 --single-branch --branch ${THUNDER_ADMIN_BRANCH} https://github.com/BurdaMagazinOrg/theme-thunder-admin.git ${TEST_DIR}/docroot/themes/contrib/thunder_admin