forked from mendersoftware/mendertesting
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci-check-commits-signoffs.yml
More file actions
38 lines (34 loc) · 1.32 KB
/
Copy path.gitlab-ci-check-commits-signoffs.yml
File metadata and controls
38 lines (34 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
include:
- project: 'Northern.tech/Mender/mendertesting'
file:
- 'qa-common/retry.yml'
- 'qa-common/runner.yml'
default:
tags: !reference [.qa-common-default-runner, tags]
retry: !reference [.qa-common-default-retry, retry]
stages:
- test
test:check-commits:
stage: test
needs: []
except:
- /^(master|hosted|staging|production|saas-v[0-9.]+|[0-9]+\.[0-9]+\.x)$/
image: registry.gitlab.com/northern.tech/mender/mender-test-containers/base-alpine:master
variables:
GIT_STRATEGY: clone # clone entire repo instead of reusing workspace
GIT_DEPTH: 0 # avoid shallow clone, this test requires full git history
before_script:
- !reference [.qa-common-network-git-clone-retry, before_script]
# 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 -f origin 'refs/heads/*:refs/heads/*'
# Get last remaining tags, if any.
- git fetch --tags origin
- git clone --depth=1 https://github.com/mendersoftware/mendertesting /tmp/mendertesting
script:
# Verify that the commits have signoffs.
- /tmp/mendertesting/check_commits.sh --signoffs