Updated travis config : install ghostscript, required for Html2Image

This commit is contained in:
luccioman 2017-10-05 13:09:11 +02:00
parent ddb8715fd5
commit 7e271f9cf5
2 changed files with 6 additions and 1 deletions

View File

@ -10,6 +10,11 @@ jdk:
# only `sudo: true` allows running tests on Travis CI container infrastructure for faster builds, but testing installation of .deb makes sense
sudo: true
# Installing ghostcript (optional imagemagick dependency) is required for Html2ImageTest to run
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y ghostcript
install:
- cd libbuild && MAVEN_OPTS="-Xmx6g -Xms2g" mvn clean install && cd ..

View File

@ -65,7 +65,7 @@ public class Html2Image {
private final static File convertMac2 = new File("/opt/ImageMagick/bin/convert");
// debian
// to install: apt-get install wkhtmltopdf imagemagick xvfb
// to install: apt-get install wkhtmltopdf imagemagick xvfb ghostscript
private final static File wkhtmltopdfDebian = new File("/usr/bin/wkhtmltopdf"); // there is no wkhtmltoimage, use convert to create images
private final static File convertDebian = new File("/usr/bin/convert");