forked from ovn-kubernetes/libovsdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update Makefile - Tests now use Docker Compose - No more rewritten import paths - Golint Fixes Signed-off-by: Dave Tucker <[email protected]>
- Loading branch information
Dave Tucker
committed
May 3, 2016
1 parent
f6ba96e
commit 139587a
Showing
13 changed files
with
144 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,28 @@ | ||
all: build test | ||
.PHONY: all test test-local install-deps lint fmt vet | ||
|
||
build: | ||
go build -v | ||
all: test | ||
|
||
test-local: install-deps fmt lint vet | ||
@echo "+ $@" | ||
@go test -v ./... | ||
|
||
test: | ||
go test -covermode=count -coverprofile=coverage.out -test.short -v | ||
@docker-compose run --rm test | ||
|
||
install-deps: | ||
@echo "+ $@" | ||
@go get -u github.com/golang/lint/golint | ||
@go get -d ./... | ||
|
||
lint: | ||
@echo "+ $@" | ||
@test -z "$$(golint ./... | tee /dev/stderr)" | ||
|
||
fmt: | ||
@echo "+ $@" | ||
@test -z "$$(gofmt -s -l . | tee /dev/stderr)" | ||
|
||
test-all: | ||
go test -covermode=count -coverprofile=coverage.out -v | ||
vet: | ||
@echo "+ $@" | ||
@go vet ./... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
ovs: | ||
image: socketplane/openvswitch:2.4.0 | ||
ports: | ||
- "6640:6640" | ||
command: "/usr/bin/supervisord -n" | ||
privileged: true | ||
|
||
test: | ||
image: golang:1.6 | ||
links: | ||
- ovs | ||
volumes: | ||
- .:/go/src/github.com/socketplane/libovsdb | ||
working_dir: /go/src/github.com/socketplane/libovsdb | ||
environment: | ||
DOCKER_IP: "ovs" | ||
command: "make test-local" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.