-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (37 loc) · 851 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
52
dev_bin := ./tmp/wager
ifeq ($(OS),Windows_NT)
dev_bin = .\\tmp\\wager.exe
endif
build:
go build -o ./bin/wager ./cmd/wager
run: build
./bin/wager
run-mem: build
./bin/wager test
dev:
air \
--build.cmd "go build -o $(dev_bin) ./cmd/wager" \
--build.bin "$(dev_bin)" \
--build.include_ext "go,gohtml,html,css,js" \
--build.exclude_dir "bin,data,postman,sql,tmp"
test-unit:
go test \
./internal/pagination \
./internal/result
test-e2e:
./e2e
test: test-unit test-e2e
build-seed:
go build -o ./bin/seed ./cmd/seed
seed-clean: build-seed
./bin/seed dev none closed
seed-clean-prod: build-seed
./bin/seed prod none closed
seed1: build-seed
./bin/seed dev fixed open
seed2: build-seed
./bin/seed dev fixed closed
seed-rand1: build-seed
./bin/seed dev random open
seed-rand2: build-seed
./bin/seed dev random closed