-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
39 lines (29 loc) · 1.01 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
MAKEFILE_DIR := $(realpath $(dir $(firstword $(MAKEFILE_LIST))))
.PHONY: help
help: ## Show this help
@egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
.PHONY: lint
lint: ## Lint
ansible-lint -v molecule_qemu
pycodestyle molecule_qemu
.PHONY: test
test: ## Test
pip install -e .
cd tests && molecule test
.PHONY: test-%
test-%:
pip install -e .
cd tests && molecule test -s $*
.PHONY: test-network
test-network: test-network-shared test-network-user ## Test network
.PHONY: test-os-debian
test-os-debian: test-os-debian-bullseye test-os-debian-bookworm ## Test Debian OS
.PHONY: test-os-ubuntu
test-os-ubuntu: test-os-ubuntu-focal test-os-ubuntu-jammy test-os-ubuntu-noble ## Test Ubuntu OS
.PHONY: test-os
test-os: test-os-debian test-os-ubuntu ## Test OS
.PHONY: test-platform
test-platform: test-platform-amd64 test-platform-arm64 ## Test platform
.PHONY: clean
clean: ## Remove cache
rm -rf $(MAKEFILE_DIR)/.venv build dist *.egg-info