Skip to content
Snippets Groups Projects
Commit c64caa44 authored by Simon McVittie's avatar Simon McVittie
Browse files

CI: Run `reuse lint` as part of the ordinary test suite


This should speed it up a bit by not having to provision another runner
and download another Docker image.

Helps: steamrt/tasks#248
Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 7b5b3a9e
No related branches found
No related tags found
1 merge request!542CI improvements
Pipeline #42651 passed
...@@ -171,6 +171,7 @@ build:devel: ...@@ -171,6 +171,7 @@ build:devel:
pigz \ pigz \
pycodestyle \ pycodestyle \
pyflakes3 \ pyflakes3 \
reuse \
shellcheck \ shellcheck \
${NULL+} ${NULL+}
script: script:
...@@ -493,13 +494,4 @@ test-populate-depot:debian-12: ...@@ -493,13 +494,4 @@ test-populate-depot:debian-12:
extends: .test-populate-depot extends: .test-populate-depot
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/debian:bookworm-slim image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/debian:bookworm-slim
reuse:
stage: test
needs: []
image:
name: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/fsfe/reuse:latest
entrypoint: [""]
script:
- reuse lint
# vim:set sw=4 sts=4 et: # vim:set sw=4 sts=4 et:
...@@ -441,6 +441,7 @@ lint_scripts = [ ...@@ -441,6 +441,7 @@ lint_scripts = [
'mypy.sh', 'mypy.sh',
'pycodestyle.sh', 'pycodestyle.sh',
'pyflakes.sh', 'pyflakes.sh',
'reuse.sh',
'shellcheck.sh', 'shellcheck.sh',
] ]
......
#!/bin/sh
# Copyright © 2022-2023 Collabora Ltd
# SPDX-License-Identifier: MIT
set -eu
if ! command -v reuse >/dev/null 2>&1; then
echo "1..0 # SKIP reuse not available"
exit 0
fi
if [ -z "${G_TEST_SRCDIR-}" ]; then
me="$(readlink -f "$0")"
G_TEST_SRCDIR="${me%/*}"
fi
cd "$G_TEST_SRCDIR/.."
echo "TAP version 13"
echo "1..1"
if reuse lint >&2; then
echo "ok 1"
elif [ -n "${LINT_WARNINGS_ARE_ERRORS-}" ]; then
echo "not ok 1"
else
echo "not ok 1 # TO""DO reuse lint failed"
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment