diff --git a/.drone.yml b/.drone.yml index f4608b766..91d9e01d9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,35 +4,42 @@ workspace: pipeline: test: - image: webhippie/golang:${GO_VERSION} + image: webhippie/golang:edge pull: true environment: CGO_ENABLED: 1 TAGS: cert sqlite pam miniwinsvc commands: - apk -U add linux-pam-dev openssh-client - - make clean - make vet # - make lint - make test - make build + when: + event: [ push, tag, pull_request ] test-mysql: - image: webhippie/golang:${GO_VERSION} + image: webhippie/golang:edge pull: true commands: - make test-mysql when: - event: push + event: [ push ] test-pgsql: - image: webhippie/golang:${GO_VERSION} + image: webhippie/golang:edge pull: true commands: - make test-pgsql when: - event: push + event: [ push ] + + coverage: + image: plugins/coverage + server: https://coverage.gitea.io + when: + event: [ push, tag, pull_request ] updater: image: karalabe/xgo-latest:latest @@ -42,78 +49,57 @@ pipeline: when: event: [ push, tag ] branch: [ master, refs/tags/* ] - matrix: - GO_VERSION: 1.7 - - coverage: - image: plugins/coverage - server: https://coverage.gitea.io - when: - matrix: - GO_VERSION: 1.7 - docker: - image: plugins/docker - repo: gitea/gitea - tags: [ '${TAG}' ] - when: - event: tag - branch: refs/tags/* - matrix: - GO_VERSION: 1.7 - - docker: - image: plugins/docker - repo: gitea/gitea - tags: [ 'latest' ] - when: - event: push - branch: master - matrix: - GO_VERSION: 1.7 + # docker: + # image: plugins/docker + # repo: gitea/gitea + # tags: [ '${TAG}' ] + # when: + # event: [ tag ] + # branch: [ refs/tags/* ] + + # docker: + # image: plugins/docker + # repo: gitea/gitea + # tags: [ 'latest' ] + # when: + # event: [ push ] + # branch: [ master ] release: image: plugins/s3 path_style: true source: dist/release/ - target: /lgtm/master + target: /gitea/master when: - event: push - branch: master - matrix: - GO_VERSION: 1.7 + event: [ push ] + branch: [ master ] release: image: plugins/s3 path_style: true source: dist/release/ - target: /lgtm/$$TAG + target: /gitea/$$TAG when: - event: tag - branch: refs/tags/* - matrix: - GO_VERSION: 1.7 + event: [ tag ] + branch: [ refs/tags/* ] latest: image: plugins/s3 path_style: true source: dist/latest/ - target: /lgtm/latest + target: /gitea/latest when: - event: tag - branch: refs/tags/* - matrix: - GO_VERSION: 1.7 + event: [ tag ] + branch: [ refs/tags/* ] github: image: plugins/github-release files: - dist/release/* when: - event: tag - branch: refs/tags/* - matrix: - GO_VERSION: 1.7 + event: [ tag ] + branch: [ refs/tags/* ] gitter: image: plugins/gitter @@ -125,16 +111,11 @@ services: - MYSQL_DATABASE=test - MYSQL_ALLOW_EMPTY_PASSWORD=yes when: - event: push + event: [ push ] pgsql: image: postgres:9.5 environment: - POSTGRES_DB=test when: - event: push - -matrix: - GO_VERSION: - - 1.6 - - 1.7 + event: [ push ] diff --git a/.drone.yml.sig b/.drone.yml.sig index 978c1cd5f..412677ccf 100644 --- a/.drone.yml.sig +++ b/.drone.yml.sig @@ -1 +1 @@ -eyJhbGciOiJIUzI1NiJ9.d29ya3NwYWNlOgogIGJhc2U6IC9zcnYvYXBwCiAgcGF0aDogc3JjL2NvZGUuZ2l0ZWEuaW8vZ2l0ZWEKCnBpcGVsaW5lOgogIHRlc3Q6CiAgICBpbWFnZTogd2ViaGlwcGllL2dvbGFuZzoke0dPX1ZFUlNJT059CiAgICBwdWxsOiB0cnVlCiAgICBlbnZpcm9ubWVudDoKICAgICAgQ0dPX0VOQUJMRUQ6IDEKICAgICAgVEFHUzogY2VydCBzcWxpdGUgcGFtIG1pbml3aW5zdmMKICAgIGNvbW1hbmRzOgogICAgICAtIGFwayAtVSBhZGQgbGludXgtcGFtLWRldiBvcGVuc3NoLWNsaWVudAoKICAgICAgLSBtYWtlIGNsZWFuCiAgICAgIC0gbWFrZSB2ZXQKICAgICAgIyAtIG1ha2UgbGludAogICAgICAtIG1ha2UgdGVzdAogICAgICAtIG1ha2UgYnVpbGQKCiAgdGVzdC1teXNxbDoKICAgIGltYWdlOiB3ZWJoaXBwaWUvZ29sYW5nOiR7R09fVkVSU0lPTn0KICAgIHB1bGw6IHRydWUKICAgIGNvbW1hbm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ICAgIGV2ZW50OiBbIHB1c2ggXQoKICBwZ3NxbDoKICAgIGltYWdlOiBwb3N0Z3Jlczo5LjUKICAgIGVudmlyb25tZW50OgogICAgICAtIFBPU1RHUkVTX0RCPXRlc3QKICAgIHdoZW46CiAgICAgIGV2ZW50OiBbIHB1c2ggXQo.prVy6IgBNIsbJGs7nrii2QoiAQ9ELnL2ThtQ-owHGHw \ No newline at end of file diff --git a/README.md b/README.md index 901d03bf4..5ee2aec12 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ # 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) -[![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") +[![Build Status](http://drone.gitea.io/api/badges/go-gitea/gitea/status.svg)](http://drone.gitea.io/go-gitea/gitea) [![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)