diff --git a/libnetwork/README.md b/libnetwork/README.md index b248c8d442..1467bab6fa 100644 --- a/libnetwork/README.md +++ b/libnetwork/README.md @@ -1,9 +1,2 @@ # libnetwork The Go package to manage Linux network namespaces - -# Next steps -Following discussions with Solomon, next goals are: -- Provide a package which exposes functionality over a JSON API -- Provide a binary which serves that API over HTTP -- Provide a package which implements the interfaces by calling out to the HTTP -API diff --git a/libnetwork/circle.yml b/libnetwork/circle.yml index ead6157d61..807dbc14fe 100644 --- a/libnetwork/circle.yml +++ b/libnetwork/circle.yml @@ -1,6 +1,18 @@ -test: - pre: - - which go > .gopath - override: - - sudo -E $(cat .gopath) test ./... +machine: + # sudo -E doesn't preserve $PATH, so go isn't found anymore. + environment: + GO_BIN: $(which go) + +dependencies: + post: + - go get github.com/axw/gocov/gocov + - go get github.com/golang/lint/golint + - go get golang.org/x/tools/cmd/goimports + +test: + override: + - test -z "$(goimports -d . | tee /dev/stderr)" + - go vet ./... + - test -z "$(golint ./... | tee /dev/stderr)" + - sudo -E $GO_BIN test -test.v ./...