forked from mirror/gitea
Fixed build tags and deps for all build/test steps
This commit is contained in:
parent
e52b24ad5d
commit
8a28130540
39
.drone.yml
39
.drone.yml
@ -8,9 +8,10 @@ pipeline:
|
||||
pull: true
|
||||
environment:
|
||||
CGO_ENABLED: 1
|
||||
TAGS: sqlite tidb pam
|
||||
TAGS: sqlite
|
||||
GOPATH: /srv/app
|
||||
commands:
|
||||
- apk -U add linux-pam-dev openssh-client
|
||||
- apk -U add openssh-client
|
||||
- make clean
|
||||
- make vet
|
||||
- make lint
|
||||
@ -22,34 +23,46 @@ pipeline:
|
||||
test-mysql:
|
||||
image: webhippie/golang:edge
|
||||
pull: true
|
||||
environment:
|
||||
CGO_ENABLED: 1
|
||||
TAGS: sqlite
|
||||
GOPATH: /srv/app
|
||||
commands:
|
||||
- make test-mysql
|
||||
- make test-mysql
|
||||
when:
|
||||
event: [ push ]
|
||||
|
||||
test-pgsql:
|
||||
image: webhippie/golang:edge
|
||||
pull: true
|
||||
environment:
|
||||
CGO_ENABLED: 1
|
||||
TAGS: sqlite
|
||||
GOPATH: /srv/app
|
||||
commands:
|
||||
- make test-pgsql
|
||||
- make test-pgsql
|
||||
when:
|
||||
event: [ push ]
|
||||
|
||||
updater:
|
||||
image: karalabe/xgo-latest:latest
|
||||
pull: true
|
||||
environment:
|
||||
CGO_ENABLED: 1
|
||||
TAGS: sqlite
|
||||
GOPATH: /srv/app
|
||||
commands:
|
||||
- make release
|
||||
when:
|
||||
event: [ push, tag ]
|
||||
branch: [ master, refs/tags/* ]
|
||||
|
||||
coverage:
|
||||
image: plugins/coverage
|
||||
server: https://coverage.gitea.io
|
||||
when:
|
||||
event: [ push, tag, pull_request ]
|
||||
|
||||
updater:
|
||||
image: karalabe/xgo-latest:latest
|
||||
pull: true
|
||||
commands:
|
||||
- make release
|
||||
when:
|
||||
event: [ push, tag ]
|
||||
branch: [ master, refs/tags/* ]
|
||||
|
||||
docker:
|
||||
image: plugins/docker
|
||||
repo: gitea/gitea
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user