From 92833407fc47a12c3a100f721187dd3b68110f00 Mon Sep 17 00:00:00 2001 From: Lluis Campos Date: Fri, 9 Aug 2019 14:33:29 +0200 Subject: [PATCH] Fix commit compliance checking It was broken since we modified check_commits.sh few weeks ago Changelog: None Signed-off-by: Lluis Campos --- .gitlab-ci.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d2d0fa6..4c81d08 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,9 +10,19 @@ stages: test: stage: test - script: + before_script: - apk add --no-cache bash perl-utils - - git clone git://github.com/mendersoftware/mendertesting + # Rename the branch we're on, so that it's not in the way for the + # subsequent fetch. It's ok if this fails, it just means we're not on any + # branch. + - git branch -m temp-branch || true + # Git trick: Fetch directly into our local branches instead of remote + # branches. + - git fetch origin 'refs/heads/*:refs/heads/*' + # Get last remaining tags, if any. + - git fetch --tags origin + - git clone http://github.com/mendersoftware/mendertesting + script: # Check commit compliance. - mendertesting/check_commits.sh # Check licenses