mirror of
https://github.com/vale981/travis-ci-latex-pdf
synced 2025-03-05 09:21:39 -05:00

When run without these options and encountering an error, Travis aborts the LaTeX build only after 10 minutes of output inactivity. This fix stops the execution immediately and fails with status of 1.
17 lines
589 B
YAML
17 lines
589 B
YAML
sudo: required
|
|
before_install:
|
|
- sudo apt-get -qq update && sudo apt-get install -y --no-install-recommends texlive-fonts-recommended texlive-latex-extra texlive-fonts-extra dvipng texlive-latex-recommended
|
|
script:
|
|
- mkdir _build
|
|
- pdflatex -interaction=nonstopmode -halt-on-error -output-directory _build tex/your_file_1.tex
|
|
- pdflatex -interaction=nonstopmode -halt-on-error -output-directory _build tex/your_file_2.tex
|
|
deploy:
|
|
provider: releases
|
|
api_key:
|
|
secure: [YOUR KEY]
|
|
file:
|
|
- _build/your_file_1.pdf
|
|
- _build/your_file_2.pdf
|
|
skip_cleanup: true
|
|
on:
|
|
tags: true
|