-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (34 loc) · 775 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
35
36
37
38
39
40
41
42
43
.PHONY: all test install-deps test-ci
all: build-local
test: install-deps fmt lint vet
@echo "+ $@"
@go test -race -v
test-ci:
@echo "+ $@"
make test
make build-local
@./run-integration-tests.sh
build-local:
@mkdir -p "bin"
go build -o "bin/libnetwork-ovn-plugin" ./
install-deps:
@echo "+ $@"
@go get -u github.com/golang/lint/golint
@go get -u github.com/tools/godep
@go get -u golang.org/x/tools/cmd/cover
@go get -u github.com/mattn/goveralls
@go get -d ./...
lint:
@echo "+ $@"
@test -z "$$(golint ./... | grep -v vendor/ | tee /dev/stderr)"
fmt:
@echo "+ $@"
@test -z "$$(gofmt -s -l . | grep -v vendor/ | tee /dev/stderr)"
vet:
@echo "+ $@"
@go vet ./ ./ovn
clean:
@if [ -d bin ]; then \
echo "Removing binaries"; \
rm -rf bin; \
fi