mirror of
https://github.com/thegeeklab/url-parser.git
synced 2024-11-16 18:20:41 +00:00
chore: update build env to golang 1.16
This commit is contained in:
parent
c7a5cbb700
commit
730dfaa03d
@ -9,7 +9,7 @@ local PipelineTest = {
|
||||
steps: [
|
||||
{
|
||||
name: 'staticcheck',
|
||||
image: 'golang:1.15',
|
||||
image: 'golang:1.16',
|
||||
commands: [
|
||||
'go run honnef.co/go/tools/cmd/staticcheck ./...',
|
||||
],
|
||||
@ -22,7 +22,7 @@ local PipelineTest = {
|
||||
},
|
||||
{
|
||||
name: 'lint',
|
||||
image: 'golang:1.15',
|
||||
image: 'golang:1.16',
|
||||
commands: [
|
||||
'go run golang.org/x/lint/golint -set_exit_status ./...',
|
||||
],
|
||||
@ -35,7 +35,7 @@ local PipelineTest = {
|
||||
},
|
||||
{
|
||||
name: 'vet',
|
||||
image: 'golang:1.15',
|
||||
image: 'golang:1.16',
|
||||
commands: [
|
||||
'go vet ./...',
|
||||
],
|
||||
@ -48,7 +48,7 @@ local PipelineTest = {
|
||||
},
|
||||
{
|
||||
name: 'test',
|
||||
image: 'golang:1.15',
|
||||
image: 'golang:1.16',
|
||||
commands: [
|
||||
'go test -race -coverprofile=coverage.txt -covermode=atomic ./...',
|
||||
],
|
||||
@ -95,7 +95,7 @@ local PipelineBuildBinaries = {
|
||||
steps: [
|
||||
{
|
||||
name: 'build',
|
||||
image: 'techknowlogick/xgo:go-1.15.x',
|
||||
image: 'techknowlogick/xgo:go-1.16.x',
|
||||
commands: [
|
||||
'[ -z "${DRONE_TAG}" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}',
|
||||
'mkdir -p release/',
|
||||
|
12
.drone.yml
12
.drone.yml
@ -8,7 +8,7 @@ platform:
|
||||
|
||||
steps:
|
||||
- name: staticcheck
|
||||
image: golang:1.15
|
||||
image: golang:1.16
|
||||
commands:
|
||||
- go run honnef.co/go/tools/cmd/staticcheck ./...
|
||||
volumes:
|
||||
@ -16,7 +16,7 @@ steps:
|
||||
path: /go
|
||||
|
||||
- name: lint
|
||||
image: golang:1.15
|
||||
image: golang:1.16
|
||||
commands:
|
||||
- go run golang.org/x/lint/golint -set_exit_status ./...
|
||||
volumes:
|
||||
@ -24,7 +24,7 @@ steps:
|
||||
path: /go
|
||||
|
||||
- name: vet
|
||||
image: golang:1.15
|
||||
image: golang:1.16
|
||||
commands:
|
||||
- go vet ./...
|
||||
volumes:
|
||||
@ -32,7 +32,7 @@ steps:
|
||||
path: /go
|
||||
|
||||
- name: test
|
||||
image: golang:1.15
|
||||
image: golang:1.16
|
||||
commands:
|
||||
- go test -race -coverprofile=coverage.txt -covermode=atomic ./...
|
||||
volumes:
|
||||
@ -70,7 +70,7 @@ platform:
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: techknowlogick/xgo:go-1.15.x
|
||||
image: techknowlogick/xgo:go-1.16.x
|
||||
commands:
|
||||
- "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}"
|
||||
- mkdir -p release/
|
||||
@ -175,6 +175,6 @@ depends_on:
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: ea0f25d6b420728bb13c4500ee174e43f64ce6fcf5f09bd7545142f560ff8b8b
|
||||
hmac: 7fdbba67121342a2cc89d474cba472b10a0dc466f40ca82fd2cfa8414ae78f54
|
||||
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user