From a1313665e9065faa6f97b703146b0352b1699935 Mon Sep 17 00:00:00 2001 From: Lluis Campos Date: Thu, 7 Nov 2019 11:38:24 +0100 Subject: [PATCH] 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 --- .gitlab-ci.yml | 26 ++++++-------------------- LIC_FILES_CHKSUM.sha256 | 1 - 2 files changed, 6 insertions(+), 21 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 46863d6..a58d894 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,31 +3,17 @@ image: docker:git variables: 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: - test - build - 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: stage: build services: diff --git a/LIC_FILES_CHKSUM.sha256 b/LIC_FILES_CHKSUM.sha256 index 2534c88..4784d7d 100644 --- a/LIC_FILES_CHKSUM.sha256 +++ b/LIC_FILES_CHKSUM.sha256 @@ -1,2 +1 @@ beb140be4cd64599bedc691a55b2729c9cc611a4b9d6ec44e01270105daf18a2 LICENSE -beb140be4cd64599bedc691a55b2729c9cc611a4b9d6ec44e01270105daf18a2 mendertesting/LICENSE