diff --git a/README.md b/README.md index b248c8d..1467bab 100644 --- a/README.md +++ b/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/circle.yml b/circle.yml index ead6157..807dbc1 100644 --- a/circle.yml +++ b/circle.yml @@ -1,6 +1,18 @@ +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: - pre: - - which go > .gopath override: - - sudo -E $(cat .gopath) test ./... + - test -z "$(goimports -d . | tee /dev/stderr)" + - go vet ./... + - test -z "$(golint ./... | tee /dev/stderr)" + - sudo -E $GO_BIN test -test.v ./...