forked from apache/incubator-devlake
/
Makefile
51 lines (35 loc) · 795 Bytes
/
Makefile
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
47
48
49
50
51
# NOTE: you have to use tabs in this file for make. Not spaces.
# https://stackoverflow.com/questions/920413/make-error-missing-separator
# https://tutorialedge.net/golang/makefiles-for-go-developers/
hello:
echo "Hello"
build-plugin:
@sh scripts/compile-plugins.sh
build: build-plugin
go build -o bin/lake
dev: build
bin/lake
run:
go run main.go
configure:
docker-compose up config-ui
configure-dev:
cd config-ui; yarn; npm run dev;
compose:
docker-compose up grafana
compose-down:
docker-compose down
commit:
git cz
install:
go clean --modcache
go get
test: unit-test e2e-test
unit-test: build
ENV_FILE=`pwd`/.env go test -v $$(go list ./... | grep -v /test/)
e2e-test: build
ENV_FILE=`pwd`/.env go test -v ./test/...
lint:
golangci-lint run
clean:
@rm -rf bin