Set up an actual test run, replicating what we do in Travis.
This doesn't yet do a matrix of builds, and some of the `go get` stuff
should really be put into a custom primary image, but this is a start.
version: 2
jobs:
- build:
+ test:
+ working_directory: /go/src/go.universe.tf/metallb
docker:
- image: circleci/golang:1.9
+ steps:
+ - checkout
+ - run: go get github.com/Masterminds/glide
+ - run: go get github.com/golang/lint/golint
+ - run: glide install
+ - run: go install -v ./controller ./speaker ./test-bgp-router
+ - run: go test $(glide novendor)
+ - run: go test -race $(glide novendor)
+ - run: go vet $(glide novendor)
+ - run: glide novendor | xargs -n1 golint
+ deploy:
steps:
- checkout
- setup_remote_docker
