1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-09-28 11:00:23 +02:00

fix: only run test coverage on master branch. (#1838)

This commit is contained in:
Bo-Yi Wu 2017-06-01 13:07:24 -05:00 committed by Kim "BKC" Carlbäcker
parent abb19eff39
commit 04c6c31f8e
2 changed files with 29 additions and 6 deletions

View File

@ -8,7 +8,7 @@ pipeline:
depth: 50
tags: true
test:
build:
image: webhippie/golang:edge
pull: true
environment:
@ -21,11 +21,35 @@ pipeline:
- make vet
- make lint
- make test-vendor
- make test
- make build
when:
event: [ push, tag, pull_request ]
test:
image: webhippie/golang:edge
pull: true
environment:
TAGS: bindata sqlite
GOPATH: /srv/app
commands:
- apk -U add openssh-client
- make test
when:
event: [ tag, pull_request ]
test-coverage:
image: webhippie/golang:edge
pull: true
environment:
TAGS: bindata sqlite
GOPATH: /srv/app
commands:
- apk -U add openssh-client
- make test-coverage
when:
event: [ push ]
branch: master
test-sqlite:
image: webhippie/golang:edge
pull: true
@ -73,10 +97,9 @@ pipeline:
coverage:
image: plugins/coverage
server: https://coverage.gitea.io
commands:
- make test-coverage
when:
event: [ push, tag ]
event: [ push ]
branch: master
docker:
image: plugins/docker

File diff suppressed because one or more lines are too long