Skip to content

Commit cfa7524

Browse files
szachovyCopilot
andcommitted
Add Makefile for common operations
Provide setup, test, teardown, and clean targets so the full test suite can be run with a single 'make test' command. Closes #63 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0ab8ce7 commit cfa7524

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
* Dependabot updates for `github-actions` and `terraform` ecosystems. (#29)
1616
* CI workflow to build and push service images to GitHub Container Registry on master merge. (#97)
1717
* Pull-first with local build fallback for container images during deployment. (#97)
18+
* Makefile with setup, test, teardown, and clean targets. (#63)
1819

1920
### Changed
2021

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.PHONY: setup test teardown clean
2+
3+
setup:
4+
cd tests/setup && terraform init && terraform apply -auto-approve
5+
6+
test: setup
7+
cd tests/testsuite && ansible-playbook --inventory inventory.yml deploy.yml
8+
9+
teardown:
10+
cd tests/setup && terraform destroy -auto-approve
11+
12+
clean: teardown
13+
docker volume prune --force
14+
find . -name '*.pyc' -delete
15+
find . -name '__pycache__' -type d -exec rm -rf {} + 2>/dev/null || true

0 commit comments

Comments
 (0)