Makefile
all: lint build test
build: changelog
PYTHONPATH=. python3 -m build
changelog:
PYTHONPATH=. gitchangelog > CHANGELOG.md
clean:
rm -rf dist
docker compose -f tests/resources/docker-compose.yml down -t 0 -v
cleanall: clean
docker system prune --all --force
docker volume prune --all --force
lint:
docker run --rm -i hadolint/hadolint < tests/resources/sut/Dockerfile
yamllint -s .
flake8 --radon-max-cc 5
bandit -r .
isort .
tag:
@grep __version_ testinfra_bdd/__init__.py | cut -d\' -f2
test:
docker compose -f tests/resources/docker-compose.yml up -d --build
docker compose -f tests/resources/docker-compose.yml exec -T sut /usr/local/bin/install-dist-package.sh
PYTHONPATH=.:.. pytest