Strauman / travis-latexbuild

Building LaTeX packages using Travis-CI
12 stars 4 forks source link

Rebuild filename databases after package install #25

Closed reitzig closed 5 years ago

reitzig commented 5 years ago

Addresses issue Strauman/latex-docker/#9.

PHPirates commented 5 years ago

Did you test that it resolves the issue? Are you sure that the ifmtarg package is installed? To test that it's not a missing package problem, I tried building with my texliveonfly docker image on Travis, but I'm getting different errors (https://travis-ci.com/PHPirates/secret-hitler-extended, something with the font yfrak not found), maybe I'll look into that if I have time.

reitzig commented 5 years ago

Did you test that it resolves the issue?

I have no idea how to build and customize @Strauman's setup locally -- the mix of image setup during Docker build and run is uncomfortable to hook into -- so no, sadly. I should maybe have made clearer that this was kind of a shot in the blue.

Are you sure that the ifmtarg package is installed?

Derp. I completely forgot that tlmgr is not a proper package manager and you have to handle dependencies yourself ... googled the error message, found that bit about texhash, stopped looking. My bad, sorry to have wasted your time!

Side note: The "add a package to .travis.yml; commit, push; wait for build to fail; repeat" loop is not very satisfying and far too much hassle for a quick side project. I hesitate to use the full scheme; is there a smarter way to configure the "smallest possible" TeXlive for a build?

PHPirates commented 5 years ago

No worries, I see you somehow managed to fix the build so that's good. I understand, I just didn't know if you were familiar with docker or not.

is there a smarter way to configure the "smallest possible" TeXlive for a build?

Yes, when you make use of the texliveonfly tex live package. I wrote up some info at https://tex.stackexchange.com/a/463842/98850 and you can also use this on Travis with a docker image as I wrote at https://github.com/PHPirates/travis-ci-latex-pdf#using-a-docker-image-with-texlive-and-texliveonfly, also see #22 for that.

There is one disadvantage which I still intend to fix (PHPirates/travis-ci-latex-pdf#20) : at the moment the packages are again installed on every build, which makes the build time long. I still want to enable caching somehow by saving the docker container between builds.