-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (23 loc) · 913 Bytes
/
Makefile
File metadata and controls
28 lines (23 loc) · 913 Bytes
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
.PHONY: build
build:
go build -v ./cmd/gophermart
cd cmd/gophermart && go build -o gophermart
.PHONY: test
test:
go clean -testcache
go test -cover -v ./internal/store/sqlstore
go test -cover -v ./pkg/...
go test -cover -v ./internal/server
.PHONY: t
t:
./gophermarttest \
-test.v -test.run=^TestGophermart$ \
-gophermart-binary-path=cmd/gophermart/gophermart \
-gophermart-host=localhost \
-gophermart-port=8000 \
-gophermart-database-uri="postgresql://marlo:819819@localhost:5432/gophermart_test?sslmode=disable" \
-accrual-binary-path=cmd/accrual/accrual_linux_amd64 \
-accrual-host=localhost \
-accrual-port=5000 \
-accrual-database-uri="postgresql://marlo:819819@localhost:5432/gophermart_test?sslmode=disable"
.DEFAULT_GOAL := build