composer optimization for travis setup
@@ -43,18 +43,12 @@ drush --uri=127.0.0.1:8282 en -y simpletest
# Set default theme to carapace (and download dependencies, will composer-ize later)
cd /opt/drupal
if [ -z "$COMPOSER_PATH" ]; then
- composer require "drupal/adaptivetheme:^2.0" "drupal/at_tools:^2.0" "drupal/layout_plugin:^1.0@alpha"
+ composer require "zaporylie/composer-drupal-optimizations:^1.0" "drupal/adaptivetheme:^2.0" "drupal/at_tools:^2.0" "drupal/layout_plugin:^1.0@alpha" "drupal/pdf:1.x-dev"
else
- php -dmemory_limit=-1 $COMPOSER_PATH require "drupal/adaptivetheme:^2.0" "drupal/at_tools:^2.0" "drupal/layout_plugin:^1.0@alpha"
+ php -dmemory_limit=-1 $COMPOSER_PATH require "zaporylie/composer-drupal-optimizations:^1.0" "drupal/adaptivetheme:^2.0" "drupal/at_tools:^2.0" "drupal/layout_plugin:^1.0@alpha" "drupal/pdf:1.x-dev"
fi
-cd web
-drush en -y at_tools
-drush en -y layout_plugin
-mkdir /opt/drupal/web/themes/custom
-git clone https://github.com/Islandora-CLAW/carapace /opt/drupal/web/themes/custom/carapace
-drush then -y carapace
-drush -y config-set system.theme default carapace
+cd web
mkdir libraries
cd libraries
wget "https://github.com/mozilla/pdf.js/releases/download/v2.0.943/pdfjs-2.0.943-dist.zip"
@@ -62,12 +56,13 @@ mkdir pdf.js
unzip pdfjs-2.0.943-dist.zip -d pdf.js
rm pdfjs-2.0.943-dist.zip
-# Get the pdf module
-if [ -z "$COMPOSER_PATH" ]; then
- composer require "drupal/pdf:1.x-dev"
-else
- php -dmemory_limit=-1 $COMPOSER_PATH require "drupal/pdf:1.x-dev"
-fi
+cd ..
+drush en -y at_tools
+drush en -y layout_plugin
+mkdir /opt/drupal/web/themes/custom
+git clone https://github.com/Islandora-CLAW/carapace /opt/drupal/web/themes/custom/carapace
+drush then -y carapace
+drush -y config-set system.theme default carapace
drush -y en pdf
echo "Setup ActiveMQ"
