switch to go 1.15
This commit is contained in:
parent
0c73f2258c
commit
35f4a2dfe5
|
@ -9,7 +9,7 @@ local PipelineTest = {
|
||||||
steps: [
|
steps: [
|
||||||
{
|
{
|
||||||
name: 'staticcheck',
|
name: 'staticcheck',
|
||||||
image: 'golang:1.14',
|
image: 'golang:1.15',
|
||||||
commands: [
|
commands: [
|
||||||
'go run honnef.co/go/tools/cmd/staticcheck ./...',
|
'go run honnef.co/go/tools/cmd/staticcheck ./...',
|
||||||
],
|
],
|
||||||
|
@ -22,7 +22,7 @@ local PipelineTest = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'lint',
|
name: 'lint',
|
||||||
image: 'golang:1.14',
|
image: 'golang:1.15',
|
||||||
commands: [
|
commands: [
|
||||||
'go run golang.org/x/lint/golint -set_exit_status ./...',
|
'go run golang.org/x/lint/golint -set_exit_status ./...',
|
||||||
],
|
],
|
||||||
|
@ -35,7 +35,7 @@ local PipelineTest = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'vet',
|
name: 'vet',
|
||||||
image: 'golang:1.14',
|
image: 'golang:1.15',
|
||||||
commands: [
|
commands: [
|
||||||
'go vet ./...',
|
'go vet ./...',
|
||||||
],
|
],
|
||||||
|
@ -48,7 +48,7 @@ local PipelineTest = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'test',
|
name: 'test',
|
||||||
image: 'golang:1.14',
|
image: 'golang:1.15',
|
||||||
commands: [
|
commands: [
|
||||||
'go test -race -coverprofile=coverage.txt -covermode=atomic ./...',
|
'go test -race -coverprofile=coverage.txt -covermode=atomic ./...',
|
||||||
],
|
],
|
||||||
|
@ -95,7 +95,7 @@ local PipelineBuildBinaries = {
|
||||||
steps: [
|
steps: [
|
||||||
{
|
{
|
||||||
name: 'build',
|
name: 'build',
|
||||||
image: 'techknowlogick/xgo:go-1.14.x',
|
image: 'techknowlogick/xgo:go-1.15.x',
|
||||||
commands: [
|
commands: [
|
||||||
'[ -z "${DRONE_TAG}" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}',
|
'[ -z "${DRONE_TAG}" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}',
|
||||||
'mkdir -p release/',
|
'mkdir -p release/',
|
||||||
|
|
12
.drone.yml
12
.drone.yml
|
@ -8,7 +8,7 @@ platform:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: staticcheck
|
- name: staticcheck
|
||||||
image: golang:1.14
|
image: golang:1.15
|
||||||
commands:
|
commands:
|
||||||
- go run honnef.co/go/tools/cmd/staticcheck ./...
|
- go run honnef.co/go/tools/cmd/staticcheck ./...
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -16,7 +16,7 @@ steps:
|
||||||
path: /go
|
path: /go
|
||||||
|
|
||||||
- name: lint
|
- name: lint
|
||||||
image: golang:1.14
|
image: golang:1.15
|
||||||
commands:
|
commands:
|
||||||
- go run golang.org/x/lint/golint -set_exit_status ./...
|
- go run golang.org/x/lint/golint -set_exit_status ./...
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -24,7 +24,7 @@ steps:
|
||||||
path: /go
|
path: /go
|
||||||
|
|
||||||
- name: vet
|
- name: vet
|
||||||
image: golang:1.14
|
image: golang:1.15
|
||||||
commands:
|
commands:
|
||||||
- go vet ./...
|
- go vet ./...
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -32,7 +32,7 @@ steps:
|
||||||
path: /go
|
path: /go
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: golang:1.14
|
image: golang:1.15
|
||||||
commands:
|
commands:
|
||||||
- go test -race -coverprofile=coverage.txt -covermode=atomic ./...
|
- go test -race -coverprofile=coverage.txt -covermode=atomic ./...
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -70,7 +70,7 @@ platform:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: techknowlogick/xgo:go-1.14.x
|
image: techknowlogick/xgo:go-1.15.x
|
||||||
commands:
|
commands:
|
||||||
- "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}"
|
- "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}"
|
||||||
- mkdir -p release/
|
- mkdir -p release/
|
||||||
|
@ -162,6 +162,6 @@ depends_on:
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 4e6b6ec60c6a01f20ded56de08f051f1e7baaf74dda8c649d839d5a8053a999e
|
hmac: 5491f814e4edd00e12047cd91988765ed1af400a4a30ab4401ca2015096ab4f4
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
- INTERNAL
|
- INTERNAL
|
||||||
- refactor project structure
|
- switch to go 1.15
|
||||||
|
|
Loading…
Reference in New Issue