mirror of
https://github.com/thegeeklab/wp-github-comment.git
synced 2024-11-21 13:50:40 +00:00
disable droneci manager and switch to go1.15
This commit is contained in:
parent
2d31846c86
commit
92062a9d33
@ -8,7 +8,7 @@ local PipelineTest = {
|
||||
steps: [
|
||||
{
|
||||
name: 'staticcheck',
|
||||
image: 'golang:1.14',
|
||||
image: 'golang:1.15',
|
||||
commands: [
|
||||
'go run honnef.co/go/tools/cmd/staticcheck ./...',
|
||||
],
|
||||
@ -21,7 +21,7 @@ local PipelineTest = {
|
||||
},
|
||||
{
|
||||
name: 'lint',
|
||||
image: 'golang:1.14',
|
||||
image: 'golang:1.15',
|
||||
commands: [
|
||||
'go run golang.org/x/lint/golint -set_exit_status ./...',
|
||||
],
|
||||
@ -34,7 +34,7 @@ local PipelineTest = {
|
||||
},
|
||||
{
|
||||
name: 'vet',
|
||||
image: 'golang:1.14',
|
||||
image: 'golang:1.15',
|
||||
commands: [
|
||||
'go vet ./...',
|
||||
],
|
||||
@ -47,7 +47,7 @@ local PipelineTest = {
|
||||
},
|
||||
{
|
||||
name: 'test',
|
||||
image: 'golang:1.14',
|
||||
image: 'golang:1.15',
|
||||
commands: [
|
||||
'go test -cover ./...',
|
||||
],
|
||||
@ -81,7 +81,7 @@ local PipelineBuildBinaries = {
|
||||
steps: [
|
||||
{
|
||||
name: 'build',
|
||||
image: 'techknowlogick/xgo:go-1.14.x',
|
||||
image: 'techknowlogick/xgo:go-1.15.x',
|
||||
commands: [
|
||||
'[ -z "${DRONE_TAG}" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}',
|
||||
'mkdir -p release/',
|
||||
@ -149,7 +149,7 @@ local PipelineBuildContainer(arch='amd64') = {
|
||||
steps: [
|
||||
{
|
||||
name: 'build',
|
||||
image: 'golang:1.14',
|
||||
image: 'golang:1.15',
|
||||
commands: [
|
||||
'[ -z "${DRONE_TAG}" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}',
|
||||
'go build -v -ldflags "-X main.version=$BUILD_VERSION" -a -tags netgo -o release/' + arch + '/drone-github-comment ./cmd/drone-github-comment',
|
||||
|
18
.drone.yml
18
.drone.yml
@ -8,7 +8,7 @@ platform:
|
||||
|
||||
steps:
|
||||
- name: staticcheck
|
||||
image: golang:1.14
|
||||
image: golang:1.15
|
||||
commands:
|
||||
- go run honnef.co/go/tools/cmd/staticcheck ./...
|
||||
volumes:
|
||||
@ -16,7 +16,7 @@ steps:
|
||||
path: /go
|
||||
|
||||
- name: lint
|
||||
image: golang:1.14
|
||||
image: golang:1.15
|
||||
commands:
|
||||
- go run golang.org/x/lint/golint -set_exit_status ./...
|
||||
volumes:
|
||||
@ -24,7 +24,7 @@ steps:
|
||||
path: /go
|
||||
|
||||
- name: vet
|
||||
image: golang:1.14
|
||||
image: golang:1.15
|
||||
commands:
|
||||
- go vet ./...
|
||||
volumes:
|
||||
@ -32,7 +32,7 @@ steps:
|
||||
path: /go
|
||||
|
||||
- name: test
|
||||
image: golang:1.14
|
||||
image: golang:1.15
|
||||
commands:
|
||||
- go test -cover ./...
|
||||
volumes:
|
||||
@ -59,7 +59,7 @@ platform:
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: techknowlogick/xgo:go-1.14.x
|
||||
image: techknowlogick/xgo:go-1.15.x
|
||||
commands:
|
||||
- "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}"
|
||||
- mkdir -p release/
|
||||
@ -116,7 +116,7 @@ platform:
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: golang:1.14
|
||||
image: golang:1.15
|
||||
commands:
|
||||
- "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}"
|
||||
- go build -v -ldflags "-X main.version=$BUILD_VERSION" -a -tags netgo -o release/amd64/drone-github-comment ./cmd/drone-github-comment
|
||||
@ -193,7 +193,7 @@ platform:
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: golang:1.14
|
||||
image: golang:1.15
|
||||
commands:
|
||||
- "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}"
|
||||
- go build -v -ldflags "-X main.version=$BUILD_VERSION" -a -tags netgo -o release/arm64/drone-github-comment ./cmd/drone-github-comment
|
||||
@ -270,7 +270,7 @@ platform:
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: golang:1.14
|
||||
image: golang:1.15
|
||||
commands:
|
||||
- "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}"
|
||||
- go build -v -ldflags "-X main.version=$BUILD_VERSION" -a -tags netgo -o release/arm/drone-github-comment ./cmd/drone-github-comment
|
||||
@ -432,6 +432,6 @@ depends_on:
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: 674d4c15df2c54a1a0db591ab3eac5c01a893bac05c1bed66e2f1ba1a82cbf9d
|
||||
hmac: c475b26373c250eff194cba0fabfddb2047242a3cfb3250ab734a2dd4f92507e
|
||||
|
||||
...
|
||||
|
@ -1,5 +1,6 @@
|
||||
{
|
||||
"extends": [
|
||||
"config:base"
|
||||
]
|
||||
"extends": ["config:base"],
|
||||
"droneci": {
|
||||
"enabled": false
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user