Skip to content

Instantly share code, notes, and snippets.

@paulsturgess
Last active December 15, 2015 23:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulsturgess/5344563 to your computer and use it in GitHub Desktop.
Save paulsturgess/5344563 to your computer and use it in GitHub Desktop.
Get wicked_pdf tests running on Travis
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 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