Add gitlab-ci configuration

This commit is contained in:
Aminda Suomalainen 2023-05-22 18:39:12 +03:00
parent c938cf1ef9
commit 9013070168
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
3 changed files with 24 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
*~ *~
.~*# .~*#
.cache/**
# ---> TeX # ---> TeX
## Core latex/pdflatex auxiliary files: ## Core latex/pdflatex auxiliary files:

16
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,16 @@
# 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 texlive
- 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
cache:
paths:
- ${PRE_COMMIT_HOME}

View File

@ -30,6 +30,13 @@ repos:
hooks: hooks:
- id: doctoc - id: doctoc
args: [--update-only, --notitle] args: [--update-only, --notitle]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.23.0
hooks:
#- id: check-dependabot
#- id: check-github-actions
#- id: check-github-workflows
- id: check-gitlab-ci
- repo: https://github.com/pre-commit/mirrors-prettier - repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.0-alpha.9-for-vscode" rev: "v3.0.0-alpha.9-for-vscode"
hooks: hooks: