"no luck" isn't helpful. Exactly what errors did you see? If the package is in the whitelist for the apt addon (https://docs.travis-ci.com/user/installing-dependencies/#Installing-Packages-with-the-APT-Addon) then it looks like you got the syntax right. If it isn't in the whitelist yet, you can open an issue and ask for it to be added: https://github.com/travis-ci/apt-package-whitelist#package-approval-process
On Thursday, April 21, 2016 at 11:53:41 AM UTC-7, Tom Breloff wrote: > > Do you know the exact commands I would need to add to the travis file? I > tried: > > sudo: required >> before_install: >> - sudo apt-get -qq update >> - sudo apt-get install wkhtmltopdf-dbg -y > > > and: > > addons: >> apt: >> packages: >> - wkhtmltopdf >> before install: >> - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi >> - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install wkhtmltopdf; fi > > > both with no luck. I'm testing on linux and osx, so I presume I'd need > some sort of if-statement in there? > > > On Thu, Apr 21, 2016 at 2:37 PM, Yichao Yu <[email protected] <javascript:> > > wrote: > >> On Thu, Apr 21, 2016 at 2:32 PM, Tom Breloff <[email protected] >> <javascript:>> wrote: >> > Hi all. I'm trying to figure out how to install the wkhtmltopdf >> application >> > (available through apt-get, homebrew, etc) for generating PNG files >> from raw >> > HTML (for Plots). I don't want to force the dependency as part of a >> > standard install... if users want to add it then they can output PNG for >> > Plotly, but it should (IMO) be a conditional dependency. >> > >> > I do, however, want to use it as part of the regression testing on >> Travis, >> > and that means it should be installed, but not through a standard >> BinDeps >> > method. >> > >> > For any dependency/travis wizards... what's my best course of action? >> >> I believe you can run `apt-get` in your `.travis.yml` manually to install >> those. >> >> > >> > Thanks, >> > Tom >> > >
