mirror of
https://github.com/spf13/cobra
synced 2025-05-07 05:47:26 +00:00
ci: add go 1.13.x
* circleci: export GO111MODULE=on, add 1.13.x, remove 1.11.x * travis: add go 1.13.x
This commit is contained in:
parent
2d75916030
commit
4fe7dea31c
2 changed files with 5 additions and 3 deletions
|
@ -8,6 +8,7 @@ references:
|
|||
run:
|
||||
name: "All Commands"
|
||||
command: |
|
||||
export GO111MODULE=on
|
||||
mkdir -p bin
|
||||
curl -Lso bin/shellcheck https://github.com/caarlos0/shellcheck-docker/releases/download/v0.4.6/shellcheck
|
||||
chmod +x bin/shellcheck
|
||||
|
@ -21,7 +22,7 @@ references:
|
|||
jobs:
|
||||
go-current:
|
||||
docker:
|
||||
- image: circleci/golang:1.12
|
||||
- image: circleci/golang:1.13
|
||||
working_directory: *workspace
|
||||
steps:
|
||||
- checkout
|
||||
|
@ -31,7 +32,7 @@ jobs:
|
|||
command: diff -u <(echo -n) <(gofmt -d -s .)
|
||||
go-previous:
|
||||
docker:
|
||||
- image: circleci/golang:1.11
|
||||
- image: circleci/golang:1.12
|
||||
working_directory: *workspace
|
||||
steps:
|
||||
- checkout
|
||||
|
|
|
@ -6,6 +6,7 @@ stages:
|
|||
|
||||
go:
|
||||
- 1.12.x
|
||||
- 1.13.x
|
||||
- tip
|
||||
|
||||
env: GO111MODULE=on
|
||||
|
@ -19,6 +20,6 @@ matrix:
|
|||
- go: tip
|
||||
include:
|
||||
- stage: lint
|
||||
go: 1.12.x
|
||||
go: 1.13.x
|
||||
before_install: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin latest
|
||||
script: golangci-lint run -v
|
||||
|
|
Loading…
Add table
Reference in a new issue