From 00aebc2ae317e49d1cf4517c61619de19e485835 Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Tue, 18 Jun 2024 19:47:28 -0400 Subject: [PATCH] feature: add basic Makefile for integration testing --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..31a6c23 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +## This Makefile uses the help target explained in the following blogpost: +## +## https://victoria.dev/blog/how-to-create-a-self-documenting-makefile/ + +.DEFAULT_GOAL := help + +.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: test-integration +test-integration: ## run integration tests through API client. Config is read from `~/.bottin.yaml`. WARNING: affects data in the database, do not run on production server + docker-compose down && docker-compose up -d --build && sleep 2 && go test