Merge pull request #240 from go-gitea/drone-additions
Additions to the Drone CI integration
This commit is contained in:
commit
5d4333eb0d
3 changed files with 46 additions and 65 deletions
99
.drone.yml
99
.drone.yml
|
@ -4,35 +4,42 @@ workspace:
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
test:
|
test:
|
||||||
image: webhippie/golang:${GO_VERSION}
|
image: webhippie/golang:edge
|
||||||
pull: true
|
pull: true
|
||||||
environment:
|
environment:
|
||||||
CGO_ENABLED: 1
|
CGO_ENABLED: 1
|
||||||
TAGS: cert sqlite pam miniwinsvc
|
TAGS: cert sqlite pam miniwinsvc
|
||||||
commands:
|
commands:
|
||||||
- apk -U add linux-pam-dev openssh-client
|
- apk -U add linux-pam-dev openssh-client
|
||||||
|
|
||||||
- make clean
|
- make clean
|
||||||
- make vet
|
- make vet
|
||||||
# - make lint
|
# - make lint
|
||||||
- make test
|
- make test
|
||||||
- make build
|
- make build
|
||||||
|
when:
|
||||||
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
test-mysql:
|
test-mysql:
|
||||||
image: webhippie/golang:${GO_VERSION}
|
image: webhippie/golang:edge
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
- make test-mysql
|
- make test-mysql
|
||||||
when:
|
when:
|
||||||
event: push
|
event: [ push ]
|
||||||
|
|
||||||
test-pgsql:
|
test-pgsql:
|
||||||
image: webhippie/golang:${GO_VERSION}
|
image: webhippie/golang:edge
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
- make test-pgsql
|
- make test-pgsql
|
||||||
when:
|
when:
|
||||||
event: push
|
event: [ push ]
|
||||||
|
|
||||||
|
coverage:
|
||||||
|
image: plugins/coverage
|
||||||
|
server: https://coverage.gitea.io
|
||||||
|
when:
|
||||||
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
updater:
|
updater:
|
||||||
image: karalabe/xgo-latest:latest
|
image: karalabe/xgo-latest:latest
|
||||||
|
@ -42,78 +49,57 @@ pipeline:
|
||||||
when:
|
when:
|
||||||
event: [ push, tag ]
|
event: [ push, tag ]
|
||||||
branch: [ master, refs/tags/* ]
|
branch: [ master, refs/tags/* ]
|
||||||
matrix:
|
|
||||||
GO_VERSION: 1.7
|
|
||||||
|
|
||||||
coverage:
|
# docker:
|
||||||
image: plugins/coverage
|
# image: plugins/docker
|
||||||
server: https://coverage.gitea.io
|
# repo: gitea/gitea
|
||||||
when:
|
# tags: [ '${TAG}' ]
|
||||||
matrix:
|
# when:
|
||||||
GO_VERSION: 1.7
|
# event: [ tag ]
|
||||||
|
# branch: [ refs/tags/* ]
|
||||||
|
|
||||||
docker:
|
# docker:
|
||||||
image: plugins/docker
|
# image: plugins/docker
|
||||||
repo: gitea/gitea
|
# repo: gitea/gitea
|
||||||
tags: [ '${TAG}' ]
|
# tags: [ 'latest' ]
|
||||||
when:
|
# when:
|
||||||
event: tag
|
# event: [ push ]
|
||||||
branch: refs/tags/*
|
# branch: [ master ]
|
||||||
matrix:
|
|
||||||
GO_VERSION: 1.7
|
|
||||||
|
|
||||||
docker:
|
|
||||||
image: plugins/docker
|
|
||||||
repo: gitea/gitea
|
|
||||||
tags: [ 'latest' ]
|
|
||||||
when:
|
|
||||||
event: push
|
|
||||||
branch: master
|
|
||||||
matrix:
|
|
||||||
GO_VERSION: 1.7
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
image: plugins/s3
|
image: plugins/s3
|
||||||
path_style: true
|
path_style: true
|
||||||
source: dist/release/
|
source: dist/release/
|
||||||
target: /lgtm/master
|
target: /gitea/master
|
||||||
when:
|
when:
|
||||||
event: push
|
event: [ push ]
|
||||||
branch: master
|
branch: [ master ]
|
||||||
matrix:
|
|
||||||
GO_VERSION: 1.7
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
image: plugins/s3
|
image: plugins/s3
|
||||||
path_style: true
|
path_style: true
|
||||||
source: dist/release/
|
source: dist/release/
|
||||||
target: /lgtm/$$TAG
|
target: /gitea/$$TAG
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: [ tag ]
|
||||||
branch: refs/tags/*
|
branch: [ refs/tags/* ]
|
||||||
matrix:
|
|
||||||
GO_VERSION: 1.7
|
|
||||||
|
|
||||||
latest:
|
latest:
|
||||||
image: plugins/s3
|
image: plugins/s3
|
||||||
path_style: true
|
path_style: true
|
||||||
source: dist/latest/
|
source: dist/latest/
|
||||||
target: /lgtm/latest
|
target: /gitea/latest
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: [ tag ]
|
||||||
branch: refs/tags/*
|
branch: [ refs/tags/* ]
|
||||||
matrix:
|
|
||||||
GO_VERSION: 1.7
|
|
||||||
|
|
||||||
github:
|
github:
|
||||||
image: plugins/github-release
|
image: plugins/github-release
|
||||||
files:
|
files:
|
||||||
- dist/release/*
|
- dist/release/*
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: [ tag ]
|
||||||
branch: refs/tags/*
|
branch: [ refs/tags/* ]
|
||||||
matrix:
|
|
||||||
GO_VERSION: 1.7
|
|
||||||
|
|
||||||
gitter:
|
gitter:
|
||||||
image: plugins/gitter
|
image: plugins/gitter
|
||||||
|
@ -125,16 +111,11 @@ services:
|
||||||
- MYSQL_DATABASE=test
|
- MYSQL_DATABASE=test
|
||||||
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
|
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
|
||||||
when:
|
when:
|
||||||
event: push
|
event: [ push ]
|
||||||
|
|
||||||
pgsql:
|
pgsql:
|
||||||
image: postgres:9.5
|
image: postgres:9.5
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_DB=test
|
- POSTGRES_DB=test
|
||||||
when:
|
when:
|
||||||
event: push
|
event: [ push ]
|
||||||
|
|
||||||
matrix:
|
|
||||||
GO_VERSION:
|
|
||||||
- 1.6
|
|
||||||
- 1.7
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
eyJhbGciOiJIUzI1NiJ9.d29ya3NwYWNlOgogIGJhc2U6IC9zcnYvY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vdXJjZTogZGlzdC9sYXRlc3QvCiAgICB0YXJnZXQ6IC9naXRlYS9sYXRlc3QKICAgIHdoZW46CiAgICAgIGV2ZW50OiBbIHRhZyBdCiAgICAgIGJyYW5jaDogWyByZWZzL3RhZ3MvKiBdCgogIGdpdGh1YjoKICAgIGltYWdlOiBwbHVnaW5zL2dpdGh1Yi1yZWxlYXNlCiAgICBmaWxlczoKICAgICAgLSBkaXN0L3JlbGVhc2UvKgogICAgd2hlbjoKICAgICAgZXZlbnQ6IFsgdGFnIF0KICAgICAgYnJhbmNoOiBbIHJlZnMvdGFncy8qIF0KCiAgZ2l0dGVyOgogICAgaW1hZ2U6IHBsdWdpbnMvZ2l0dGVyCgpzZXJ2aWNlczoKICBteXNxbDoKICAgIGltYWdlOiBteXNxbDo1LjcKICAgIGVudmlyb25tZW50OgogICAgICAtIE1ZU1FMX0RBVEFCQVNFPXRlc3QKICAgICAgLSBNWVNRTF9BTExPV19FTVBUWV9QQVNTV09SRD15ZXMKICAgIHdoZW46CiAgICAgIGV2ZW50OiBbIHB1c2ggXQoKICBwZ3NxbDoKICAgIGltYWdlOiBwb3N0Z3Jlczo5LjUKICAgIGVudmlyb25tZW50OgogICAgICAtIFBPU1RHUkVTX0RCPXRlc3QKICAgIHdoZW46CiAgICAgIGV2ZW50OiBbIHB1c2ggXQo.prVy6IgBNIsbJGs7nrii2QoiAQ9ELnL2ThtQ-owHGHw
|
10
README.md
10
README.md
|
@ -1,11 +1,11 @@
|
||||||
# Gitea - Git with a cup of tea
|
# Gitea - Git with a cup of tea
|
||||||
|
|
||||||
[![Build Status](https://travis-ci.org/go-gitea/gitea.svg?branch=master)](https://travis-ci.org/go-gitea/gitea)
|
[![Build Status](http://drone.gitea.io/api/badges/go-gitea/gitea/status.svg)](http://drone.gitea.io/go-gitea/gitea)
|
||||||
[![codecov](https://codecov.io/gh/go-gitea/gitea/branch/master/graph/badge.svg)](https://codecov.io/gh/go-gitea/gitea)
|
|
||||||
[![Go Report Card](https://goreportcard.com/badge/github.com/go-gitea/gitea)](https://goreportcard.com/report/github.com/go-gitea/gitea)
|
|
||||||
[![GoDoc](https://godoc.org/github.com/go-gitea/gitea?status.svg)](https://godoc.org/github.com/go-gitea/gitea)
|
|
||||||
[![](https://images.microbadger.com/badges/image/gitea/gitea.svg)](http://microbadger.com/images/gitea/gitea "Get your own image badge on microbadger.com")
|
|
||||||
[![Join the chat at https://gitter.im/go-gitea/gitea](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/go-gitea/gitea?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
[![Join the chat at https://gitter.im/go-gitea/gitea](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/go-gitea/gitea?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||||
|
[![](https://images.microbadger.com/badges/image/gitea/gitea.svg)](http://microbadger.com/images/gitea/gitea "Get your own image badge on microbadger.com")
|
||||||
|
[![Coverage Status](https://coverage.gitea.io/badges/go-gitea/gitea/coverage.svg)](https://coverage.gitea.io/go-gitea/gitea)
|
||||||
|
[![Go Report Card](https://goreportcard.com/badge/code.gitea.io/gitea)](https://goreportcard.com/report/code.gitea.io/gitea)
|
||||||
|
[![GoDoc](https://godoc.org/code.gitea.io/gitea?status.svg)](https://godoc.org/code.gitea.io/gitea)
|
||||||
|
|
||||||
![](https://github.com/go-gitea/gitea/blob/master/public/img/gitea-large-resize.png?raw=true)
|
![](https://github.com/go-gitea/gitea/blob/master/public/img/gitea-large-resize.png?raw=true)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue