industry-cv/Taskfile.yaml
2023-09-22 00:18:44 -04:00

53 lines
1.7 KiB
YAML

---
version: '3'
silent: true
vars:
compiled_name: cv
tasks:
lint:
- yamllint .
# - |
# docker run --rm \
# -v $PWD:/input/ \
# --workdir /input \
# --name texlive-{{.compiled_name}} \
# texlive/texlive \
# lacheck document.tex
- |
docker run --rm \
-v $PWD:/input/ \
--workdir /input \
--name texlive-{{.compiled_name}} \
ljhms/texlive-pygments-chktex \
chktex -n38 -n12 document.tex
compile:
- |
docker run --rm \
-v $PWD:/input/ \
--workdir /input \
--name texlive-{{.compiled_name}} \
texlive/texlive \
xelatex -jobname {{.compiled_name}} document.tex
build:
# Generating links requires compiling twice.
- task: compile
- task: compile
install:
- cp {{.compiled_name}}.pdf ../industry-website/htdocs/othoulrich-cv.pdf
publish:
- task: build
- task: install
xelatex-help:
- |
docker run --rm \
-v $PWD:/input/ \
--workdir /input \
--name texlive-{{.compiled_name}} \
texlive/texlive xelatex --help
upgrade:
- docker pull texlive/texlive
- docker pull ljhms/texlive-pygments-chktex