mirror of
https://github.com/spf13/cobra
synced 2025-05-07 22:07:23 +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:
|
run:
|
||||||
name: "All Commands"
|
name: "All Commands"
|
||||||
command: |
|
command: |
|
||||||
|
export GO111MODULE=on
|
||||||
mkdir -p bin
|
mkdir -p bin
|
||||||
curl -Lso bin/shellcheck https://github.com/caarlos0/shellcheck-docker/releases/download/v0.4.6/shellcheck
|
curl -Lso bin/shellcheck https://github.com/caarlos0/shellcheck-docker/releases/download/v0.4.6/shellcheck
|
||||||
chmod +x bin/shellcheck
|
chmod +x bin/shellcheck
|
||||||
|
@ -21,7 +22,7 @@ references:
|
||||||
jobs:
|
jobs:
|
||||||
go-current:
|
go-current:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/golang:1.12
|
- image: circleci/golang:1.13
|
||||||
working_directory: *workspace
|
working_directory: *workspace
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
@ -31,7 +32,7 @@ jobs:
|
||||||
command: diff -u <(echo -n) <(gofmt -d -s .)
|
command: diff -u <(echo -n) <(gofmt -d -s .)
|
||||||
go-previous:
|
go-previous:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/golang:1.11
|
- image: circleci/golang:1.12
|
||||||
working_directory: *workspace
|
working_directory: *workspace
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
|
|
@ -6,6 +6,7 @@ stages:
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- 1.12.x
|
- 1.12.x
|
||||||
|
- 1.13.x
|
||||||
- tip
|
- tip
|
||||||
|
|
||||||
env: GO111MODULE=on
|
env: GO111MODULE=on
|
||||||
|
@ -19,6 +20,6 @@ matrix:
|
||||||
- go: tip
|
- go: tip
|
||||||
include:
|
include:
|
||||||
- stage: lint
|
- 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
|
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
|
script: golangci-lint run -v
|
||||||
|
|
Loading…
Add table
Reference in a new issue