blob: 55c4ad5569fe65e9120f1905ecbebf5bc1dbec5a (
plain)
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
|
default: build
build: gofmtcheck golint vet
go build
install:
go install
test:
go test -v -covermode=count -coverprofile=profile.cov ./libvirt
testacc:
./travis/run-tests-acceptance
vet:
@echo "go vet ."
@go vet $$(go list ./... | grep -v vendor/) ; if [ $$? -eq 1 ]; then \
echo ""; \
echo "Vet found suspicious constructs. Please check the reported constructs"; \
echo "and fix them if necessary before submitting the code for review."; \
exit 1; \
fi
golint:
golint ./libvirt
gofmtcheck:
bash travis/run-gofmt
.PHONY: build install test vet fmt golint
|