From 0f441e99a70517253b2be7f8d0dd9f0192ee5469 Mon Sep 17 00:00:00 2001 From: jo Date: Wed, 14 Dec 2022 16:51:42 +0100 Subject: [PATCH] ci: reuse template from funkwhale/ci Part-of: --- .gitlab-ci.yml | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4ba1aa197..9338bd5af 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,10 @@ --- +include: + - project: funkwhale/ci + file: /templates/pre-commit.yml + - project: funkwhale/ci + file: /templates/lychee.yml + variables: PYTHONDONTWRITEBYTECODE: "true" @@ -107,14 +113,7 @@ review_docs: when: manual find_broken_links: - stage: lint - needs: [] - image: - name: lycheeverse/lychee - entrypoint: [""] - cache: - paths: - - .lycheecache + extends: [.lychee] script: - > lychee @@ -142,19 +141,7 @@ changelog_snippet: - if: $CI_PIPELINE_SOURCE == 'merge_request_event' pre-commit: - stage: lint - 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 + extends: [.pre-commit] eslint: interruptible: true