mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-16 11:15:31 +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:
|
include:
|
||||||
- project: 'freedesktop/ci-templates'
|
- project: 'freedesktop/ci-templates'
|
||||||
ref: 185ede0e9b9b1924b92306ab8b882a6294e92613
|
ref: "801093be0b88f23c8dbabe9cfce7134548f7ccdc"
|
||||||
file: '/templates/fedora.yml'
|
file: '/templates/fedora.yml'
|
||||||
- project: 'freedesktop/ci-templates'
|
- project: 'freedesktop/ci-templates'
|
||||||
ref: 185ede0e9b9b1924b92306ab8b882a6294e92613
|
ref: "801093be0b88f23c8dbabe9cfce7134548f7ccdc"
|
||||||
file: '/templates/debian.yml'
|
file: '/templates/debian.yml'
|
||||||
###
|
###
|
||||||
# IMPORTANT
|
# IMPORTANT
|
||||||
|
@ -161,6 +161,7 @@ gst-indent amd64 docker:
|
||||||
FDO_DISTRIBUTION_TAG: "$LINT_TAG-$GST_UPSTREAM_BRANCH"
|
FDO_DISTRIBUTION_TAG: "$LINT_TAG-$GST_UPSTREAM_BRANCH"
|
||||||
FDO_DISTRIBUTION_PACKAGES: 'python3-pip git'
|
FDO_DISTRIBUTION_PACKAGES: 'python3-pip git'
|
||||||
FDO_DISTRIBUTION_EXEC: 'ci/docker/lint/prepare.sh'
|
FDO_DISTRIBUTION_EXEC: 'ci/docker/lint/prepare.sh'
|
||||||
|
FDO_USER: "ciuser"
|
||||||
|
|
||||||
commitlint docker:
|
commitlint docker:
|
||||||
extends:
|
extends:
|
||||||
|
@ -242,6 +243,8 @@ commitlint:
|
||||||
needs:
|
needs:
|
||||||
- job: 'commitlint docker'
|
- job: 'commitlint docker'
|
||||||
artifacts: false
|
artifacts: false
|
||||||
|
before_script:
|
||||||
|
- git config --global --add safe.directory $CI_PROJECT_DIR
|
||||||
script:
|
script:
|
||||||
- echo $CI_MERGE_REQUEST_DIFF_BASE_SHA
|
- echo $CI_MERGE_REQUEST_DIFF_BASE_SHA
|
||||||
- gitlint --commits $CI_MERGE_REQUEST_DIFF_BASE_SHA..HEAD
|
- gitlint --commits $CI_MERGE_REQUEST_DIFF_BASE_SHA..HEAD
|
||||||
|
|
|
@ -9,6 +9,6 @@ variables:
|
||||||
|
|
||||||
INDENT_TAG: '2023-08-24.3'
|
INDENT_TAG: '2023-08-24.3'
|
||||||
|
|
||||||
LINT_TAG: '2023-02-16.5'
|
LINT_TAG: '2024-02-20.0'
|
||||||
|
|
||||||
WINDOWS_TAG: '2024-02-08.0'
|
WINDOWS_TAG: '2024-02-08.0'
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#! /bin/bash
|
||||||
|
|
||||||
set -eux
|
set -eux
|
||||||
|
|
||||||
python3 -m pip install gitlint
|
python3 -m pip install gitlint
|
||||||
|
|
Loading…
Reference in a new issue