I created a build.sh file which runs xelatex and bibtex to build the pdf file.
In my .travis.yml I put this script to test my repository. Locally, the build runs fine, but on Travis I get a bibtex error:
This is BibTeX, Version 0.99d (TeX Live 2015/Debian)
The top-level auxiliary file: thesis.aux
A level-1 auxiliary file: title/cover.aux
A level-1 auxiliary file: title/title.aux
I found no \citation commands---while reading file thesis.aux
I found no \bibdata command---while reading file thesis.aux
I found no \bibstyle command---while reading file thesis.aux
(There were 3 error messages)
My build.sh:
#!/bin/bash
xelatex -synctex=1 -interaction=nonstopmode -halt-on-error thesis.tex
bibtex thesis.aux
xelatex -synctex=1 -interaction=nonstopmode -halt-on-error thesis.tex
xelatex -synctex=1 -interaction=nonstopmode -halt-on-error thesis.tex
And finally, the .travis.yml:
language: shell
os: linux
install:
- sudo apt-get -qq update && sudo apt-get -qq -y install texlive texlive-latex-extra texlive-full texlive-xetex texlive-pstricks
script:
- ./build.sh
.texfile? Do you get the same error when running BibTeX locally? Note that you can also runlatexmk -xelatex, then it is automatically determined if you need BibTeX or not and how many times XeLaTeX needs to run. – Marijn Mar 20 '20 at 13:00\inputinthesis.tex. When running locally, bibtex recognizes other.auxfiles and doesn't throw an error. Thank you for thelatexmkhint! – LorenzBung Mar 20 '20 at 13:03bibtexcall from the build script, and check if all content is properly input? Then you can see if it is a problem related to input files or if the issue is somewhere else. – Marijn Mar 20 '20 at 13:09cat thesis.auxbefore the bibtex call then the travis log will show the aux file. Are there any \citation commands in the aux? if not did you get an error in the xetex run that prevented the aux file being written? – David Carlisle Mar 20 '20 at 15:45\includein the preamble.\include{header/header}should be\input{header/header}– David Carlisle Mar 20 '20 at 15:47\citein that repository? – David Carlisle Mar 20 '20 at 15:52title/extended_abstract.tex. Thanks for the note on the\include, I'm still learning a lot! – LorenzBung Mar 20 '20 at 15:53\usepackage[T1]{fontenc} \usepackage[utf8]{inputenc}The first is positvely harmful, the second does nothing (with a warning) – David Carlisle Mar 20 '20 at 15:58