diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 71153a3b64043bb90e71fcbe8d8fb9a0042eda75..172b26b0e52f2ff8076d4193ebe0f7c9722bbb9f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -124,3 +124,11 @@ test-python: - results-python.xml reports: junit: results-python.xml + +test-dco-check: + stage: test + script: + - if [ -z "$CI_COMMIT_BRANCH" ]; then export CI_COMMIT_BRANCH="$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME"; fi + - if [ -z "$CI_MERGE_REQUEST_TARGET_BRANCH_SHA" ]; then export CI_MERGE_REQUEST_TARGET_BRANCH_SHA=$(git merge-base --fork-point origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME); fi + - pip install dco-check + - dco-check