~bouncepaw/betula

betula: Add tests launching to Makefile v1 PROPOSED

~danilax86: 1
 Add tests launching to Makefile

 1 files changed, 13 insertions(+), 2 deletions(-)
#1032976 .build.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~bouncepaw/betula/patches/43144/mbox | git am -3
Learn more about email & git

[PATCH betula] Add tests launching to Makefile Export this patch

From: Danila Gorelko <danila@danilax86.space>

---
 Makefile | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 869a625..edc7139 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
PACKAGE = git.sr.ht/~bouncepaw/betula

betula:
	go build -o betula ./cmd/betula
	go build -o betula $(PACKAGE)/cmd/betula

debug-run: clean betula
	./betula db.betula
@@ -7,5 +9,14 @@ debug-run: clean betula
run-with-port: betula
	./betula -port 8081 db.betula

test: go-test web-test

go-test:
	go test -v $(PACKAGE)/db
	go test -v $(PACKAGE)/feeds

web-test:
	./test-web.sh

clean:
	rm -f betula
\ No newline at end of file
	rm -f betula
-- 
2.38.5
betula/patches/.build.yml: SUCCESS in 2m11s

[Add tests launching to Makefile][0] from [~danilax86][1]

[0]: https://lists.sr.ht/~bouncepaw/betula/patches/43144
[1]: mailto:danila@danilax86.space

✓ #1032976 SUCCESS betula/patches/.build.yml https://builds.sr.ht/~bouncepaw/job/1032976
What's with the PACKAGE variable? The dot is not enough? Having to edit the Makefile might
confuse fork creators and introduce additional friction, at least that's what I feel.