diff options
author | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-09-13 20:57:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-13 20:57:55 +0800 |
commit | 3e89e89670f3c3c4e4a63b178e38f5293e24736e (patch) | |
tree | a43e266ffafd292c1c73c17e91f34fc2bc402237 /.drone.yml | |
parent | 9ef83a98e5152b5ef4da8c228a3def6895dba82a (diff) | |
download | gitea-3e89e89670f3c3c4e4a63b178e38f5293e24736e.tar.gz gitea-3e89e89670f3c3c4e4a63b178e38f5293e24736e.zip |
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>
Diffstat (limited to '.drone.yml')
-rw-r--r-- | .drone.yml | 55 |
1 files changed, 48 insertions, 7 deletions
diff --git a/.drone.yml b/.drone.yml index 53041b3e8e..c7263522ec 100644 --- a/.drone.yml +++ b/.drone.yml @@ -35,9 +35,22 @@ pipeline: 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: @@ -60,9 +73,22 @@ pipeline: 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 + group: test + environment: + TAGS: bindata + GOPATH: /srv/app + 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 |