-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (35 loc) · 1.34 KB
/
Makefile
File metadata and controls
46 lines (35 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
all: build
build:
go mod tidy
make -C cmd
clean:
make -C cmd clean
lint:
golangci-lint run
fetch-plugins:
git clone git@github.com:ohler55/slip-flow.git plugins/slip-flow
git clone git@github.com:ohler55/slip-ggql.git plugins/slip-ggql
git clone git@github.com:ohler55/slip-jet.git plugins/slip-jet
git clone git@github.com:ohler55/slip-message.git plugins/slip-message
git clone git@github.com:ohler55/slip-mongo.git plugins/slip-mongo
git clone git@github.com:ohler55/slip-parquet.git plugins/slip-parquet
clean-plugins:
rm -rf plugins/slip-flow
rm -rf plugins/slip-ggql
rm -rf plugins/slip-jet
rm -rf plugins/slip-message
rm -rf plugins/slip-mongo
rm -rf plugins/slip-parquet
plugins:
$(foreach plugin, $(wildcard ./plugins/slip-*), cd $(plugin); go mod edit --replace github.com/ohler55/slip=../..; make ; go mod edit --replace github.com/ohler55/slip=../slip; cd $(ROOT_DIR);)
testlint: lint
make -C test
test:
make -C test cover
$Q go tool cover -func=test/cov.out | grep "total:"
$(eval COVERAGE = $(shell go tool cover -func=test/cov.out | grep "total:" | grep -Eo "[0-9]+\.[0-9]+"))
sh ./assets/gen-coverage-badge.sh $(COVERAGE)
test-plugins: plugins
go run cmd/slip/main.go -e '(terpri)' plugins/require-test.lisp
.PHONY: all lint clean build test test plugins