move coverage step to test pipeline

This commit is contained in:
Robert Kaussow 2020-02-03 13:20:31 +01:00
parent 0f79e5c26f
commit f7ebf4bb01
2 changed files with 32 additions and 32 deletions

View File

@ -40,7 +40,25 @@ def testing():
'commands': [
'go test -race -coverprofile=coverage.txt -covermode=atomic ./...'
],
}
},
{
'name': 'coverage',
'image': 'plugins/codecov',
'settings': {
'token': {
'from_secret': 'codecov_token',
},
'files':[
'coverage.txt'
],
},
'when': {
'ref': [
'refs/heads/master',
'refs/pull/**'
],
},
},
],
'trigger': {
'ref': [
@ -90,24 +108,6 @@ def binaries(arch):
'cd release/ && sha256sum * > sha256sum.txt',
],
},
{
'name': 'coverage',
'image': 'plugins/codecov',
'settings': {
'token': {
'from_secret': 'codecov_token',
},
'files':[
'coverage.txt'
],
},
'when': {
'ref': [
'refs/heads/master',
'refs/pull/**'
],
},
},
{
'name': 'publish',
'image': 'plugins/github-release',

View File

@ -18,6 +18,18 @@ steps:
commands:
- go test -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: coverage
image: plugins/codecov
settings:
files:
- coverage.txt
token:
from_secret: codecov_token
when:
ref:
- refs/heads/master
- refs/pull/**
trigger:
ref:
- refs/heads/master
@ -59,18 +71,6 @@ steps:
commands:
- cd release/ && sha256sum * > sha256sum.txt
- name: coverage
image: plugins/codecov
settings:
files:
- coverage.txt
token:
from_secret: codecov_token
when:
ref:
- refs/heads/master
- refs/pull/**
- name: publish
image: plugins/github-release
settings:
@ -130,6 +130,6 @@ depends_on:
---
kind: signature
hmac: 4d47c1352ad084436acc5f2fefff9cddf87ed1d09be8e41d7e37d818b164d718
hmac: 0f5b0278040dd5a8fa7e7794e7552063af07d127f90c15676238a2b63687dc6a
...