Browse Source

Update commit/license checks in CI to use mendertesting Pipelines

This is the "new way" to perform such checks, so that any change in the
testing repo does not require an update in local licenses checksum file.

Changelog: None

Signed-off-by: Lluis Campos <lluis.campos@northern.tech>
2.0.x
Lluis Campos 5 years ago
parent
commit
a1313665e9
  1. 26
      .gitlab-ci.yml
  2. 1
      LIC_FILES_CHKSUM.sha256

26
.gitlab-ci.yml

@ -3,31 +3,17 @@ image: docker:git
variables: variables:
DOCKER_REPOSITORY: mendersoftware/mender-convert DOCKER_REPOSITORY: mendersoftware/mender-convert
include:
- project: 'Northern.tech/Mender/mendertesting'
file: '.gitlab-ci-check-commits.yml'
- project: 'Northern.tech/Mender/mendertesting'
file: '.gitlab-ci-check-license.yml'
stages: stages:
- test - test
- build - build
- test_acceptance - test_acceptance
test:
stage: test
before_script:
- apk add --no-cache bash perl-utils
# 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
- mendertesting/check_license.sh
build: build:
stage: build stage: build
services: services:

1
LIC_FILES_CHKSUM.sha256

@ -1,2 +1 @@
beb140be4cd64599bedc691a55b2729c9cc611a4b9d6ec44e01270105daf18a2 LICENSE beb140be4cd64599bedc691a55b2729c9cc611a4b9d6ec44e01270105daf18a2 LICENSE
beb140be4cd64599bedc691a55b2729c9cc611a4b9d6ec44e01270105daf18a2 mendertesting/LICENSE

Loading…
Cancel
Save