-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (35 loc) · 956 Bytes
/
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
40
41
42
43
44
45
.PHONY: all clean default install lock update checks pc lint test
default: checks
install:
pre-commit install
poetry install --sync --no-root
poetry run ansible-galaxy install -r requirements.yml
lock:
poetry lock --no-update
update:
poetry up --latest
poetry run galaxy-update requirements.yml
checks: pc lint-py
pc:
pre-commit run -a
lint-py:
poetry run poe lint
lint:
poetry run ansible-lint
test-%:
pushd roles/$* && poetry run molecule test -s $*; popd
test-vg-%:
pushd roles/$* && poetry run molecule test -s $*_vagrant; popd
bumped:
git cliff --bumped-version
# make release-tag_name
# make release-$(git cliff --bumped-version)-alpha.0
release-%: checks
git cliff -o CHANGELOG.md --tag $*
pre-commit run --files CHANGELOG.md || pre-commit run --files CHANGELOG.md
git add CHANGELOG.md
git commit -m "chore(release): prepare for $*"
git push
git tag -a $* -m "chore(release): $*"
git push origin $*
git tag --verify $*