[gjs: 3/6] CI: Add license-check job
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 3/6] CI: Add license-check job
- Date: Mon, 30 Nov 2020 21:04:23 +0000 (UTC)
commit 6bfca93d221cadf2404e5237e0e7e360839f0d74
Author: Philip Chimento <philip chimento gmail com>
Date: Sun Sep 13 21:39:24 2020 -0700
CI: Add license-check job
This adds a CI job that uses Reuse Software's lint tool to make sure that
any newly added files have a license and copyright header.
.gitlab-ci.yml | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index eca954cb..5e9ec1e5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,7 +14,7 @@ stages:
.gjs-alpine:
variables:
- FDO_DISTRIBUTION_TAG: '2020-11-20.1'
+ FDO_DISTRIBUTION_TAG: '2020-11-23.0'
FDO_UPSTREAM_REPO: GNOME/gjs
build-alpine-image:
@@ -27,7 +27,7 @@ build-alpine-image:
FDO_DISTRIBUTION_EXEC: |
python3 -m ensurepip &&
rm -r /usr/lib/python*/ensurepip &&
- pip3 install --no-cache --upgrade cpplint &&
+ pip3 install --no-cache --upgrade cpplint reuse &&
mkdir -p /cwd
.coverage: &coverage
@@ -238,6 +238,15 @@ codespell:
script:
- codespell -S "*.png,*.po,*.jpg,.git,LICENSES,NEWS" -f --builtin "code,clear"
--ignore-words-list="afterall,befores,files',filetest,gir,inout,stdio,uint,upto,xdescribe"
+license-check:
+ when: on_success
+ stage: source_check
+ extends:
+ - .fdo.distribution-image@alpine
+ - .gjs-alpine
+ script:
+ - reuse lint
+
#############################################
# Manual Jobs #
#############################################
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]