Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporarily exclude PDF if D10 #18

Merged
merged 1 commit into from
Jun 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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