Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building pdf on CI #30

Open
153957 opened this issue Jul 20, 2015 · 15 comments
Open

Building pdf on CI #30

153957 opened this issue Jul 20, 2015 · 15 comments

Comments

@153957
Copy link
Collaborator

153957 commented Jul 20, 2015

Today I came across this repo in which someone installs a newer version of TeX Live on Travis (this takes only ± 3 minutes). This is the 2012 version of TeX Live.

We could use this to test the compilation of the .tex files, see #14.

@153957
Copy link
Collaborator Author

153957 commented Jul 20, 2015

And if we choose not to do this we should add sudo: false to the .travis.yml files to enable container based builds.

@153957
Copy link
Collaborator Author

153957 commented Jul 22, 2015

See 'working' example in the ci-tex branch..
This does take several more minutes (9 instead of 2) to run.
And not every demo works, I skipped; the demo that required SciPy, the Matplotlib plot, and the Polar axis plots. The Polar plots use a coordinate system to position the xlabel which is apparently unknown to the TikZ/PGFPlots in TeXLive 2012.

So.. is it worth the hassle? at least you will know if the pdf can compile.
I only found out about the bug fixed with aad966b because I manually compiled the entire demo, the making of the tex files worked fine. However, that was not really an artist bug, but a LaTeX bug.

@153957
Copy link
Collaborator Author

153957 commented Jul 22, 2015

Note; do not merge the ci-tex branch, it is a bit messy due to testing things, and the demo is no longer complete.

@davidfokkema
Copy link
Owner

Do you know of any PPA's with TeXLive 2015 (or 2014?). 2012 is a bit old. If we do this, we should decide which versions of TeXLive to support. Suppose we decide to support the current and previous versions, then we should test for TeXLive 2015 and TeXLive 2014. Is that feasible?

@153957
Copy link
Collaborator Author

153957 commented Jul 29, 2015

I do not, I don't think there is any which will work on Travis. So supporting TeXLive on Travis remains unlikely.

@davidfokkema
Copy link
Owner

Pity. Is it possible to upload stuff to Travis? Or ssh into an environment? Maybe we can install TeXLive (both versions) manually and tar.gz the whole tree for unpacking during builds.

@davidfokkema
Copy link
Owner

Is this something we can use? https://github.com/thomasjo/travis-texlive. Not nice, but it works, I guess. Or create a custom package. Lots of work.

@153957
Copy link
Collaborator Author

153957 commented Jul 30, 2015

Yea, that might be difficult.
Travis also has some caching mechanism allowing you to cache some packages that are used for each build, Im not certain about the specifics, but that might be useful if we use our own built versions.

@153957
Copy link
Collaborator Author

153957 commented Mar 6, 2018

See:
HiSPARC/infopakket#43
HiSPARC/routenet#6
HiSPARC/logo#4

@153957
Copy link
Collaborator Author

153957 commented Dec 12, 2018

Or maybe easier using Tectonic: https://malramsay.com/post/compiling_latex_on_travis/

@davidfokkema
Copy link
Owner

Looks interesting!

@153957
Copy link
Collaborator Author

153957 commented Dec 13, 2018

Indeed, it should automatically install the packages required for the document you throw at it, so no worrying about configuring the install and it should keep the installation relatively small.

@davidfokkema
Copy link
Owner

davidfokkema commented Dec 13, 2018 via email

@153957 153957 closed this as completed Dec 13, 2018
@153957 153957 reopened this Dec 13, 2018
@153957
Copy link
Collaborator Author

153957 commented Dec 17, 2018

One of the 👎 for tectonic is that it does not support the 'shell-escape' option, i.e. it does not support the popular minted package: tectonic-typesetting/tectonic#38

This is usually not required for rendering figures generated with artist, but might be for other parts of documents which include artist figures.

@153957 153957 mentioned this issue Dec 18, 2018
@davidfokkema
Copy link
Owner

That will be a problem if we ever decide to build a TikZ-like pdf manual. For now, let's stick to Sphinx then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants