Last active
December 15, 2015 23:59
-
-
Save paulsturgess/5344563 to your computer and use it in GitHub Desktop.
Get wicked_pdf tests running on Travis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
before_script: | |
- sudo apt-get install -y wkhtmltopdf | |
- "export DISPLAY=:99.0" | |
- "sh -e /etc/init.d/xvfb start" | |
env: WKHTMLTOPDF_BIN=/usr/bin/wkhtmltopdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file lives in config/initializers | |
WickedPdf.config = { | |
:exe_path => ENV['WKHTMLTOPDF_BIN'] || '/usr/local/bin/wkhtmltopdf' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment