0

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
  • Welcome to TeX.SE! Do you actually have citation commands in your .tex file? Do you get the same error when running BibTeX locally? Note that you can also run latexmk -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
  • I do have citation commands in tex files which I \input in thesis.tex. When running locally, bibtex recognizes other .aux files and doesn't throw an error. Thank you for the latexmk hint! – LorenzBung Mar 20 '20 at 13:03
  • Maybe you can simplify the situation a bit (for testing) by moving all citation related things into the main file, or by removing the bibtex call 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:09
  • Even though I don't know what the error is here, TeX Live 2015 is perhaps old compared to your local system. I wrote other methods of building LaTeX on Travis here, perhaps they could be helpful: https://tex.stackexchange.com/a/398831/98850 (or on github (In particular this one)). – PHPirate Mar 20 '20 at 14:14
  • About this particular error: a minimal LaTeX document would be helpful (or a link to your repo with the file, if it's open source) – PHPirate Mar 20 '20 at 14:15
  • Here's a link to the Github repository, with the build, tex and travis files in the root of the repo – LorenzBung Mar 20 '20 at 15:34
  • put cat thesis.aux before 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
  • possibly not related but never use \include in the preamble. \include{header/header} should be \input{header/header} – David Carlisle Mar 20 '20 at 15:47
  • I do not see any \cite in that repository? – David Carlisle Mar 20 '20 at 15:52
  • @DavidCarlisle In the last line of title/extended_abstract.tex. Thanks for the note on the \include, I'm still learning a lot! – LorenzBung Mar 20 '20 at 15:53
  • so there is meanwhile never use either of these lines with xetex \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

1 Answers1

0

Okay so I fixed the issue with help of David's comment: I removed the \usepackage[T1]{fontenc} and \usepackage[utf8]{inputenc} when building with latexmk -xelatex, which let the build pass successfully.