1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-05 09:08:22 +00:00

add codecov.io service. (#2493)

* add codecov.io service.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* update

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* only PR or master branch (for coverage badge)

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* update

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* update init

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2017-09-13 20:57:55 +08:00
committed by GitHub
parent 9ef83a98e5
commit 3e89e89670
4 changed files with 74 additions and 29 deletions

View File

@@ -34,10 +34,23 @@ pipeline:
environment:
TAGS: bindata sqlite
GOPATH: /srv/app
commands:
- make unit-test-coverage
when:
event: [ push, pull_request ]
branch: [ master ]
test:
image: webhippie/golang:edge
pull: true
group: test
environment:
TAGS: bindata
GOPATH: /srv/app
commands:
- make test
when:
event: [ push, tag, pull_request ]
event: [ tag ]
# Commented until db locking have been resolved!
# test-sqlite:
@@ -52,6 +65,19 @@ pipeline:
# when:
# event: [ push, tag, pull_request ]
test-mysql:
image: webhippie/golang:edge
pull: true
group: test
environment:
TAGS: bindata
GOPATH: /srv/app
commands:
- make integration-test-coverage
when:
event: [ push, pull_request ]
branch: [ master ]
test-mysql:
image: webhippie/golang:edge
pull: true
@@ -62,7 +88,7 @@ pipeline:
commands:
- make test-mysql
when:
event: [ push, tag, pull_request ]
event: [ tag ]
test-pgsql:
image: webhippie/golang:edge
@@ -76,11 +102,26 @@ pipeline:
when:
event: [ push, tag, pull_request ]
# coverage:
# image: plugins/coverage:latest
# pull: true
# secrets: [ github_token ]
# server: https://coverage.gitea.io
generate-coverage:
image: webhippie/golang:edge
pull: true
environment:
TAGS: bindata
GOPATH: /srv/app
commands:
- make coverage
when:
event: [ push, pull_request ]
branch: [ master ]
coverage:
image: robertstettner/drone-codecov
secrets: [ codecov_token ]
files:
- coverage.all
when:
event: [ push, pull_request ]
branch: [ master ]
static:
image: karalabe/xgo-latest:latest