ci: reuse template from funkwhale/ci
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2282>
This commit is contained in:
parent
a599bede1e
commit
0f441e99a7
|
@ -1,4 +1,10 @@
|
||||||
---
|
---
|
||||||
|
include:
|
||||||
|
- project: funkwhale/ci
|
||||||
|
file: /templates/pre-commit.yml
|
||||||
|
- project: funkwhale/ci
|
||||||
|
file: /templates/lychee.yml
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
PYTHONDONTWRITEBYTECODE: "true"
|
PYTHONDONTWRITEBYTECODE: "true"
|
||||||
|
|
||||||
|
@ -107,14 +113,7 @@ review_docs:
|
||||||
when: manual
|
when: manual
|
||||||
|
|
||||||
find_broken_links:
|
find_broken_links:
|
||||||
stage: lint
|
extends: [.lychee]
|
||||||
needs: []
|
|
||||||
image:
|
|
||||||
name: lycheeverse/lychee
|
|
||||||
entrypoint: [""]
|
|
||||||
cache:
|
|
||||||
paths:
|
|
||||||
- .lycheecache
|
|
||||||
script:
|
script:
|
||||||
- >
|
- >
|
||||||
lychee
|
lychee
|
||||||
|
@ -142,19 +141,7 @@ changelog_snippet:
|
||||||
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
||||||
|
|
||||||
pre-commit:
|
pre-commit:
|
||||||
stage: lint
|
extends: [.pre-commit]
|
||||||
image: python:3.11
|
|
||||||
variables:
|
|
||||||
PIP_CACHE_DIR: $CI_PROJECT_DIR/.cache/pip
|
|
||||||
PRE_COMMIT_HOME: $CI_PROJECT_DIR/.cache/pre-commit
|
|
||||||
cache:
|
|
||||||
paths:
|
|
||||||
- $PIP_CACHE_DIR
|
|
||||||
- $PRE_COMMIT_HOME
|
|
||||||
before_script:
|
|
||||||
- pip3 install pre-commit
|
|
||||||
script:
|
|
||||||
- pre-commit run --verbose --all --color=always --show-diff-on-failure
|
|
||||||
|
|
||||||
eslint:
|
eslint:
|
||||||
interruptible: true
|
interruptible: true
|
||||||
|
|
Loading…
Reference in New Issue