Travis CI 构建时出现“缺少输入文件:‘mem110.clo’”

Travis CI 构建时出现“缺少输入文件:‘mem110.clo’”

我正在努力建立这个仓库使用 Travis CI,使用 latexmk 和 pdflatex。在本地运行良好,但当它尝试在 Travis 上编译时,我收到以下错误消息(整个日志):

! LaTeX Error: File `mem110.clo' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: clo)

Enter file name: 
! Emergency stop.
<read *> 

l.736         \input{mem1\@ptsize.clo}
                                      ^^M
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on demothesis.log.
Latexmk: Missing input file: 'mem110.clo' from line
  '! LaTeX Error: File `mem110.clo' not found.'
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
  pdflatex: Command for 'pdflatex' gave return code 256
Latexmk: Use the -f option to force complete processing.

据我了解,mem110.clo它是我的论文模板所基于的 Memoir 类的一部分,它应该包含在 Ubuntu 上的 TeX-live 包中。

这是 .travis.yml:

language: bash
before_install:
  - sudo apt-get update
  - sudo apt-get install -y --no-install-recommends texlive-full latexmk

install: true

script:
  - latexmk demothesis.tex -pdf -pdflatex="pdflatex -interaction=nonstopmode" -jobname=demothesis

before_deploy:
  - if [ -z ${TRAVIS_TAG+x} ]; then echo "TRAVIS_TAG is unset."; else mv demothesis.pdf demothesis_$TRAVIS_TAG.pdf; fi

deploy:
  skip_cleanup: true
  provider: releases
  api_key:
    secure: <token>
  file: demothesis_$TRAVIS_TAG.pdf
  on:
    tags: true

branches:
  only: master

关于如何在 Travis 上进行编译,有什么想法吗?

相关内容