add experimental .gitlab-ci.yml

This commit is contained in:
Aminda Suomalainen 2023-10-05 19:16:08 +03:00
parent 2f8ecf0edb
commit 2ac5a8396c
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
1 changed files with 17 additions and 0 deletions

17
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,17 @@
# Based on https://pre-commit.com
#image: python:alpine
image: pypy:latest
gitlab-ci-pre-commit:
stage: build
before_script:
#- apk add --no-cache git gcc musl-dev go
- pypy3 -m 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}