Update CircleCI config

This commit is contained in:
Harald Nordgren 2018-10-25 20:27:20 +02:00
parent a6c1d946d5
commit 6a464c0f8b

View file

@ -18,7 +18,9 @@ base: &base
go get -t -v ./... go get -t -v ./...
PATH=$PATH:$PWD/bin go test -v ./... PATH=$PATH:$PWD/bin go test -v ./...
go build go build
diff -u <(echo -n) <(gofmt -d -s .) if [ -n $LATEST_GO ]; then
diff -u <(echo -n) <(gofmt -d -s .);
fi
if [ -z $NOVET ]; then if [ -z $NOVET ]; then
diff -u <(echo -n) <(go tool vet . 2>&1 | grep -vE 'ExampleCommand|bash_completions.*Fprint'); diff -u <(echo -n) <(go tool vet . 2>&1 | grep -vE 'ExampleCommand|bash_completions.*Fprint');
fi fi
@ -26,13 +28,15 @@ version: 2
jobs: jobs:
go-current: go-current:
docker: docker:
- image: circleci/golang:1.10.0 - image: circleci/golang:1.11
<<: *base <<: *base
go-previous: go-previous:
docker: docker:
- image: circleci/golang:1.9.4 - image: circleci/golang:1.10
<<: *base <<: *base
go-latest: go-latest:
docker: docker:
- image: circleci/golang:latest - image: circleci/golang:latest
environment:
LATEST_GO: LATEST_GO
<<: *base <<: *base