Skip to content

Commit 7240188

Browse files
committed
Add Makefile target for container tests execution
This enables to run tests in a UBI8 container with a fixed pylint version.
1 parent 6ecc84b commit 7240188

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,10 @@ bumpver: po-push
128128

129129
ci: check test
130130

131-
.PHONY: clean install tag archive local
131+
# Run tests in the container but with fixed pylint version
132+
container-ci:
133+
podman run --pull=always --rm -v .:/simpleline:Z --workdir /simpleline registry.access.redhat.com/ubi8:latest sh -c " \
134+
dnf install -y python3-pip python3-gobject-base make && pip3 install pocketlint 'pylint==2.5.3' ; \
135+
make ci"
136+
137+
.PHONY: clean install tag archive local ci container-ci

0 commit comments

Comments
 (0)