Actually looking through the logs carefully, it seems that it was installed:
sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install wkhtmltopdf Reading package lists... Building dependency tree... Reading state information... The following NEW packages will be installed: wkhtmltopdf 0 upgraded, 1 newly installed, 0 to remove and 235 not upgraded. Need to get 104 kB of archives. After this operation, 303 kB of additional disk space will be used. Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/universe wkhtmltopdf amd64 0.9.9-3 [104 kB] Fetched 104 kB in 0s (1,467 kB/s) Selecting previously unselected package wkhtmltopdf. (Reading database ... 71420 files and directories currently installed.) Unpacking wkhtmltopdf (from .../wkhtmltopdf_0.9.9-3_amd64.deb) ... Processing triggers for man-db ... Setting up wkhtmltopdf (0.9.9-3) ... But then maybe it's not part of the PATH? I get a "cannot spawn... No such file or directory" error. INFO: Testing plot: plotly:1:Lines Error :: (line:-1) Expression: image_comparison_tests(pkg,i,debug=debug,sigma=sigma,eps=eps) |> success --> true could not spawn `wkhtmltoimage -q --width 500 --height 300 --disable-smart-width /tmp/julia823cLQ.html /tmp/julia63d061.png`: no such file or directory (ENOENT) in _jl_spawn at process.jl:262 in anonymous at process.jl:415 in setup_stdio at ./process.jl:403 in __spawn#58__ at ./process.jl:414 in run at ./process.jl:530 in html_to_png at /home/travis/.julia/v0.4/Plots/src/backends/web.jl:45 in writemime_png_from_html at /home/travis/.julia/v0.4/Plots/src/backends/web.jl:55 in writemime at /home/travis/.julia/v0.4/Plots/src/backends/plotly.jl:503 in png at /home/travis/.julia/v0.4/Plots/src/output.jl:8 in png at /home/travis/.julia/v0.4/Plots/src/output.jl:11 in anonymous at /home/travis/.julia/v0.4/Plots/test/imgcomp.jl:42 in test_images at /home/travis/.julia/v0.4/VisualRegressionTests/src/imgcomp.jl:79 in image_comparison_tests at /home/travis/.julia/v0.4/Plots/test/imgcomp.jl:54 in anonymous at /home/travis/.julia/v0.4/FactCheck/src/FactCheck.jl:271 in do_fact at /home/travis/.julia/v0.4/FactCheck/src/FactCheck.jl:333 [inlined code] from /home/travis/.julia/v0.4/FactCheck/src/FactCheck.jl:271 in image_comparison_facts at /home/travis/.julia/v0.4/Plots/test/imgcomp.jl:66 in anonymous at /home/travis/.julia/v0.4/Plots/test/runtests.jl:40 in facts at /home/travis/.julia/v0.4/FactCheck/src/FactCheck.jl:448 in include at ./boot.jl:261 in include_from_node1 at ./loading.jl:320 in process_options at ./client.jl:280 in _start at ./client.jl:378 Does this help describe the situation? Let me know if there's any other info I can provide. Thanks, Tom On Thursday, April 21, 2016, Tony Kelman <[email protected]> wrote: > "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]> wrote: >> >>> On Thu, Apr 21, 2016 at 2:32 PM, Tom Breloff <[email protected]> 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 >>> >> >>
