diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..567609b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6bf2c05 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +MAKEFLAGS+=--no-print-directory + +.PHONY: ci +ci: test + +.PHONY: test +test: + @go test ./... + +.PHONY: watch +watch: + @trap exit SIGINT; while true; do \ + git ls-files -c -o '*.go' | entr -r -d -c $(MAKE) test; \ + done + +.PHONY: build +build: + @go build -o ./build/tektor main.go