mirror of
https://github.com/kevinveenbirkenbach/docker-volume-backup-cleanup.git
synced 2025-12-31 04:29:08 +00:00
feat: pyproject-based packaging, unified CI and Docker e2e tests
- migrate to pyproject.toml and pip installation - introduce cleanback CLI entrypoint - add unit and Docker-based end-to-end tests - unify GitHub Actions CI and stable tagging - remove legacy tests.yml and pkgmgr requirements https://chatgpt.com/share/69517d20-f850-800f-b6ff-6b983247888f
This commit is contained in:
17
Makefile
17
Makefile
@@ -1,18 +1,17 @@
|
||||
# Makefile for Cleanup Failed Backups
|
||||
|
||||
.PHONY: test install help
|
||||
.PHONY: install help test test-unit test-e2e
|
||||
|
||||
help:
|
||||
@echo "Available targets:"
|
||||
@echo " make test - Run unit tests"
|
||||
@echo " make install - Show installation instructions"
|
||||
|
||||
test:
|
||||
test: test-unit test-e2e
|
||||
|
||||
test-unit:
|
||||
@echo ">> Running tests"
|
||||
@python3 -m unittest -v test.py
|
||||
@python3 -m unittest -v tests/unit/test_main.py
|
||||
|
||||
install:
|
||||
@echo ">> Installation instructions:"
|
||||
@echo " This software can be installed with pkgmgr:"
|
||||
@echo " pkgmgr install cleanback"
|
||||
@echo " See project: https://github.com/kevinveenbirkenbach/package-manager"
|
||||
test-e2e:
|
||||
docker build -f tests/e2e/Dockerfile.e2e -t cleanback-e2e .
|
||||
docker run --rm cleanback-e2e
|
||||
|
||||
Reference in New Issue
Block a user