gist/.gitlab-ci.yml
2024-06-19 08:53:27 +03:00

22 lines
580 B
YAML

# @format
# Based on https://pre-commit.com
image: python:alpine
gitlab-ci-pre-commit:
stage: build
before_script:
- apk add --no-cache git gcc musl-dev go exiftool
- pip install pre-commit
script:
- pre-commit run --all-files --show-diff-on-failure
variables:
# Remember to gitignore .cache/**
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit
TERM: dumb
# TODO: How to LaTeX on Alpine? texmf-dist texlive packages aren't enough
# for the artikel3 or similar templates.
SKIP: latexmk
cache:
paths:
- ${PRE_COMMIT_HOME}