-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (25 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
GOBIN ?= $$(go env GOPATH)/bin
.PHONY: test test-cover lint cover-html server
cli:
go build -o ./limepipes-cli limepipes/cmd/limepipes-cli
mocks:
mockery
test:
go test ./...
.PHONY: install-go-test-coverage
install-go-test-coverage:
go install github.com/vladopajic/go-test-coverage/v2@latest
.PHONY: check-coverage
check-coverage: install-go-test-coverage
go test ./... -coverprofile=./cover.out -covermode=atomic -coverpkg=./...
${GOBIN}/go-test-coverage --config=./.testcoverage.yaml
lint:
golangci-lint run
server:
./scripts/generate_server.sh
create_test_certificates:
mkdir -p build && \
cd build && \
pwd && \
openssl req -new -subj "/C=US/ST=Utah/CN=localhost" -newkey rsa:2048 -nodes -keyout localhost.key -out localhost.csr && \
openssl x509 -req -days 365 -in localhost.csr -signkey localhost.key -out localhost.crt