mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
ci: Run the commit lint job as a user
Part of #2433 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5938>
This commit is contained in:
parent
157471889e
commit
dc5b866d87
3 changed files with 8 additions and 3 deletions
|
@ -1,9 +1,9 @@
|
|||
include:
|
||||
- project: 'freedesktop/ci-templates'
|
||||
ref: 185ede0e9b9b1924b92306ab8b882a6294e92613
|
||||
ref: "801093be0b88f23c8dbabe9cfce7134548f7ccdc"
|
||||
file: '/templates/fedora.yml'
|
||||
- project: 'freedesktop/ci-templates'
|
||||
ref: 185ede0e9b9b1924b92306ab8b882a6294e92613
|
||||
ref: "801093be0b88f23c8dbabe9cfce7134548f7ccdc"
|
||||
file: '/templates/debian.yml'
|
||||
###
|
||||
# IMPORTANT
|
||||
|
@ -161,6 +161,7 @@ gst-indent amd64 docker:
|
|||
FDO_DISTRIBUTION_TAG: "$LINT_TAG-$GST_UPSTREAM_BRANCH"
|
||||
FDO_DISTRIBUTION_PACKAGES: 'python3-pip git'
|
||||
FDO_DISTRIBUTION_EXEC: 'ci/docker/lint/prepare.sh'
|
||||
FDO_USER: "ciuser"
|
||||
|
||||
commitlint docker:
|
||||
extends:
|
||||
|
@ -242,6 +243,8 @@ commitlint:
|
|||
needs:
|
||||
- job: 'commitlint docker'
|
||||
artifacts: false
|
||||
before_script:
|
||||
- git config --global --add safe.directory $CI_PROJECT_DIR
|
||||
script:
|
||||
- echo $CI_MERGE_REQUEST_DIFF_BASE_SHA
|
||||
- gitlint --commits $CI_MERGE_REQUEST_DIFF_BASE_SHA..HEAD
|
||||
|
|
|
@ -9,6 +9,6 @@ variables:
|
|||
|
||||
INDENT_TAG: '2023-08-24.3'
|
||||
|
||||
LINT_TAG: '2023-02-16.5'
|
||||
LINT_TAG: '2024-02-20.0'
|
||||
|
||||
WINDOWS_TAG: '2024-02-08.0'
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#! /bin/bash
|
||||
|
||||
set -eux
|
||||
|
||||
python3 -m pip install gitlint
|
||||
|
|
Loading…
Reference in a new issue