Skip to content

Commit

Permalink
Merge pull request #18 from Islandora/rosiel-patch-1
Browse files Browse the repository at this point in the history
Temporarily exclude PDF if D10
  • Loading branch information
seth-shaw-asu authored Jun 14, 2023
2 parents 6592b77 + 3aa7244 commit 859a928
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions travis_setup_drupal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,23 @@ echo "Enable simpletest module"
drush --uri=127.0.0.1:8282 en -y simpletest

# Install pdfjs
cd /opt/drupal
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
# Skip if Drupal 10, since drupal/pdf is not yet compatible.
if [ $DRUPAL_MAJOR -le 9 ]; then
cd /opt/drupal
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 web
mkdir libraries
cd libraries
wget "https://github.com/mozilla/pdf.js/releases/download/v2.0.943/pdfjs-2.0.943-dist.zip"
mkdir pdf.js
unzip pdfjs-2.0.943-dist.zip -d pdf.js
rm pdfjs-2.0.943-dist.zip

cd web
mkdir libraries
cd libraries
wget "https://github.com/mozilla/pdf.js/releases/download/v2.0.943/pdfjs-2.0.943-dist.zip"
mkdir pdf.js
unzip pdfjs-2.0.943-dist.zip -d pdf.js
rm pdfjs-2.0.943-dist.zip

cd ..
drush -y en pdf
cd ..
drush -y en pdf
fi

0 comments on commit 859a928

Please sign in to comment.