industry-cv/Taskfile.yaml

53 lines
1.7 KiB
YAML
Raw Normal View History

2023-03-20 04:34:15 +00:00
---
2022-07-11 04:12:19 +00:00
version: '3'
silent: true
vars:
compiled_name: cv
tasks:
2023-03-20 04:34:15 +00:00
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
2022-07-11 04:12:19 +00:00
compile:
2023-03-20 04:34:15 +00:00
- |
docker run --rm \
-v $PWD:/input/ \
--workdir /input \
--name texlive-{{.compiled_name}} \
texlive/texlive \
xelatex -jobname {{.compiled_name}} document.tex
build:
2022-07-11 04:12:19 +00:00
# Generating links requires compiling twice.
2023-03-20 04:34:15 +00:00
- task: compile
- task: compile
2022-07-11 04:12:19 +00:00
install:
2023-09-22 04:18:44 +00:00
- cp {{.compiled_name}}.pdf ../industry-website/htdocs/othoulrich-cv.pdf
2022-07-11 04:12:19 +00:00
publish:
2023-03-20 04:34:15 +00:00
- task: build
2022-07-11 04:12:19 +00:00
- task: install
xelatex-help:
2023-03-20 04:34:15 +00:00
- |
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