mirror of
https://github.com/spf13/cobra
synced 2025-05-06 13:27:26 +00:00
Update CircleCI config
This commit is contained in:
parent
a6c1d946d5
commit
6a464c0f8b
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue