summary refs log tree commit diff homepage
path: root/Makefile
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2023-03-07 02:29:15 +0900
committerNguyễn Gia Phong <mcsinyx@disroot.org>2023-03-07 02:36:25 +0900
commitd378edca8215080fb0a86899f6dc52643bdb0852 (patch)
treedf84cf42e878805a61087b8b3cb9187e1eee60cd /Makefile
parent72e56c93dfda955dd2af05607c7afe2b510fee23 (diff)
downloadhybring-d378edca8215080fb0a86899f6dc52643bdb0852.tar.gz
Add integration tests for HTTP API
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 60867aa..dc4c4ed 100644
--- a/Makefile
+++ b/Makefile
@@ -17,16 +17,19 @@
 SHELL = /bin/sh
 PREFIX ?= /usr/local
 
-.PHONY: man all clean install uninstall
+.PHONY: man all clean check install uninstall
 
-all: bin
+all: hybring
 
-bin: $(wildcard src/*.cr)
+hybring: $(wildcard src/*.cr)
 	crystal build -o hybring src/cli.cr
 
 clean:
 	rm hybring
 
+check: $(wildcard spec/*.cr)
+	crystal spec --order random spec/server.cr
+
 install: all
 	install -Dm 755 hybring ${DESTDIR}${PREFIX}/bin/hybring