-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (24 loc) · 747 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
.PHONY: mod build
.DEFAULT_GOAL := build
BUILD = `date +%FT%T%z`
mod:
go mod verify
build:
go build -ldflags "-w -s -X main.Build=${BUILD}" ${GOPATH}/src/github.com/arxon31/gophkeep/cmd/sso/sso.go
tests:
go install github.com/matryer/moq@v0.3.4
go generate ./...
go test -v -p 1 ./...
coverage:
go install github.com/matryer/moq@v0.3.4
go generate ./...
go test -coverprofile=coverage.out -v -p 1 ./...
lint:
go install github.com/matryer/moq@v0.3.4
go generate ./...
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
golangci-lint run ./... --config=./.golangci.yml
format:
goimports -local "github.com/arxon31/gophkeep" -w `pwd`
run:
docker compose -f ./deployments/docker-compose.dev.yml up -d --build