Add gitlab CI
Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
parent
65e77ac533
commit
02fd3a9e79
25
.gitlab-ci.yml
Normal file
25
.gitlab-ci.yml
Normal file
@ -0,0 +1,25 @@
|
||||
image: python:latest
|
||||
|
||||
variables:
|
||||
PIP_CACHE_DIR: ${CI_PROJECT_DIR}/.cache/pip
|
||||
|
||||
cache:
|
||||
paths:
|
||||
- ${PIP_CACHE_DIR}
|
||||
|
||||
before_script:
|
||||
- python --version ; pip --version
|
||||
- pip install virtualenv
|
||||
- virtualenv venv
|
||||
- source venv/bin/activate
|
||||
|
||||
pre-commit:
|
||||
variables:
|
||||
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit
|
||||
cache:
|
||||
paths:
|
||||
- ${PRE_COMMIT_HOME}
|
||||
script:
|
||||
- pip install pre-commit
|
||||
- pre-commit run --all-files
|
||||
|
Loading…
Reference in New Issue
Block a user