-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (30 loc) · 778 Bytes
/
Makefile
File metadata and controls
44 lines (30 loc) · 778 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
.PHONY: all tidy fa fmt lint selfcrt test up down build epp migrate superuser registrar
SERVICES = epp migrate superuser registrar
all: tidy fa fmt lint
tidy:
go mod tidy
fa:
@fieldalignment -fix ./...
fmt:
@goimports -w -local github.com/pixel365/zoner .
@gofmt -w .
@golines -w .
lint:
@golangci-lint run
test:
@go test ./internal/... ./epp/... ./cmd/...
selfcrt:
openssl req -x509 -nodes -days 365 \
-newkey rsa:2048 \
-keyout server.key \
-out server.crt \
-config self-signed.dev.cnf
integration:
go test -v ./tests
up:
@docker-compose -p zoner -f docker-compose.dev.yaml up -d
down:
@docker-compose -p zoner -f docker-compose.dev.yaml down
$(SERVICES):
@go build -ldflags "-s -w" -o ./build/$@ ./cmd/$@
build: $(SERVICES)