Skip to content

Commit

Permalink
feat: add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
escalate committed Feb 16, 2024
1 parent c3438a8 commit b939a1d
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
SHELL = /bin/bash
.SHELLFLAGS = -e -o pipefail -c
ANSIBLE_ARGS ?= $(ANSIBLE_OPTIONS)

ifdef ANSIBLE_TAGS
ANSIBLE_ARGS := $(ANSIBLE_ARGS) --tags='$(ANSIBLE_TAGS)'
endif

export PY_COLORS=1
export ANSIBLE_FORCE_COLOR=1

.PHONY: test
test:
molecule test

.PHONY: debug
debug:
molecule --debug test --destroy never

.PHONY: lint
lint:
ec
yamllint --strict --config-file .yamllint .
ansible-lint --force-color .
flake8 --show-source .

.PHONY: converge
converge:
molecule converge -- $(ANSIBLE_ARGS)

.PHONY: verify
verify:
molecule verify

.PHONY: destroy
destroy:
molecule destroy

0 comments on commit b939a1d

Please sign in to comment.