1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/libnetwork/circle.yml
Arnaud Porterie fc6b36e2bb Fix Godeps in CI
Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com>
2015-03-05 00:58:37 -08:00

27 lines
877 B
YAML

machine:
environment:
BASE_DIR: src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
CHECKOUT: /home/ubuntu/$CIRCLE_PROJECT_REPONAME
pre:
# sudo -E doesn't preserve $PATH, so go isn't found anymore.
- sudo ln -s $(which go) /usr/local/bin
checkout:
post:
# We need docker/libnetwork itself in the GOPATH for imports to work.
- ln -s $CHECKOUT $(echo $GOPATH | cut -d":" -f1)/$BASE_DIR
dependencies:
override:
- go get github.com/tools/godep
post:
- go get github.com/golang/lint/golint
- go get golang.org/x/tools/cmd/goimports
test:
override:
- test -z "$(goimports -l . | grep -v Godeps/_workspace/src/ | tee /dev/stderr)"
- go vet ./...
- test -z "$(golint ./... | tee /dev/stderr)"
- sudo -E $(which godep) go test -test.v ./...