-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
53 lines (43 loc) · 1.22 KB
/
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
52
53
run:
air -- --pretty
debug:
air -- --pretty -v
trace:
air -- --pretty -vv
install:
go get ./...
go install github.com/dmarkham/enumer@latest
go generate ./...
go install github.com/air-verse/air@latest
compile:
CGO_ENABLED=0 go build -ldflags "-s -w" -trimpath ./src/...
compile-linux:
CGO_ENABLED=0 GOOS=linux go build -ldflags "-s -w" -trimpath -o bin/hearchco ./src
compile-macos:
CGO_ENABLED=0 GOOS=darwin go build -ldflags "-s -w" -trimpath -o bin/hearchco ./src
compile-windows:
CGO_ENABLED=0 GOOS=windows go build -ldflags "-s -w" -trimpath -o bin/hearchco.exe ./src
test:
sh ./scripts/test.sh
test-engines:
sh ./scripts/test-engines.sh
test-redis:
sh ./scripts/test-redis.sh
test-redis-podman:
sh ./scripts/test-redis-podman.sh
test-redis-docker:
sh ./scripts/test-redis-docker.sh
test-dynamodb:
sh ./scripts/test-dynamodb.sh
test-dynamodb-podman:
sh ./scripts/test-dynamodb-podman.sh
test-dynamodb-docker:
sh ./scripts/test-dynamodb-docker.sh
test-all: test test-redis test-dynamodb test-engines
test-all-podman: test test-redis-podman test-dynamodb-podman test-engines
test-all-docker: test test-redis-docker test-dynamodb-docker test-engines
update:
go get -u ./...
go mod tidy
lint:
golangci-lint run