0
0
mirror of https://github.com/thegeeklab/wp-github-comment.git synced 2024-11-12 16:40:40 +00:00

disable droneci manager and switch to go1.15

This commit is contained in:
Robert Kaussow 2020-11-12 21:03:42 +01:00
parent 2d31846c86
commit 92062a9d33
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
3 changed files with 19 additions and 18 deletions

View File

@ -8,7 +8,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 ./...',
], ],
@ -21,7 +21,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 ./...',
], ],
@ -34,7 +34,7 @@ local PipelineTest = {
}, },
{ {
name: 'vet', name: 'vet',
image: 'golang:1.14', image: 'golang:1.15',
commands: [ commands: [
'go vet ./...', 'go vet ./...',
], ],
@ -47,7 +47,7 @@ local PipelineTest = {
}, },
{ {
name: 'test', name: 'test',
image: 'golang:1.14', image: 'golang:1.15',
commands: [ commands: [
'go test -cover ./...', 'go test -cover ./...',
], ],
@ -81,7 +81,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/',
@ -149,7 +149,7 @@ local PipelineBuildContainer(arch='amd64') = {
steps: [ steps: [
{ {
name: 'build', name: 'build',
image: 'golang:1.14', image: 'golang:1.15',
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}',
'go build -v -ldflags "-X main.version=$BUILD_VERSION" -a -tags netgo -o release/' + arch + '/drone-github-comment ./cmd/drone-github-comment', 'go build -v -ldflags "-X main.version=$BUILD_VERSION" -a -tags netgo -o release/' + arch + '/drone-github-comment ./cmd/drone-github-comment',

View File

@ -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 -cover ./... - go test -cover ./...
volumes: volumes:
@ -59,7 +59,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/
@ -116,7 +116,7 @@ platform:
steps: steps:
- name: build - name: build
image: golang:1.14 image: golang:1.15
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}"
- go build -v -ldflags "-X main.version=$BUILD_VERSION" -a -tags netgo -o release/amd64/drone-github-comment ./cmd/drone-github-comment - 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: steps:
- name: build - name: build
image: golang:1.14 image: golang:1.15
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}"
- go build -v -ldflags "-X main.version=$BUILD_VERSION" -a -tags netgo -o release/arm64/drone-github-comment ./cmd/drone-github-comment - 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: steps:
- name: build - name: build
image: golang:1.14 image: golang:1.15
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}"
- go build -v -ldflags "-X main.version=$BUILD_VERSION" -a -tags netgo -o release/arm/drone-github-comment ./cmd/drone-github-comment - 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 kind: signature
hmac: 674d4c15df2c54a1a0db591ab3eac5c01a893bac05c1bed66e2f1ba1a82cbf9d hmac: c475b26373c250eff194cba0fabfddb2047242a3cfb3250ab734a2dd4f92507e
... ...

View File

@ -1,5 +1,6 @@
{ {
"extends": [ "extends": ["config:base"],
"config:base" "droneci": {
] "enabled": false
}
} }