diff options
author | Thomas Boerger <thomas@webhippie.de> | 2016-11-24 21:36:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-24 21:36:47 +0100 |
commit | 21e8deed897a99fc86cd6506ce1bf4a9a8c07fba (patch) | |
tree | 53c58c3373f4bc64c432aaeb1e8e48adc076aa15 /.drone.yml | |
parent | 450969c158d36e40b28b89f4fcb0ed89f885ea01 (diff) | |
parent | fd090dc29b2482b60fb821912be2859209aeb1a5 (diff) | |
download | gitea-21e8deed897a99fc86cd6506ce1bf4a9a8c07fba.tar.gz gitea-21e8deed897a99fc86cd6506ce1bf4a9a8c07fba.zip |
Merge pull request #96 from metalmatze/feature/drone-config
Create a first draft for .drone.yml
Diffstat (limited to '.drone.yml')
-rw-r--r-- | .drone.yml | 140 |
1 files changed, 140 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000000..f4608b7661 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,140 @@ +workspace: + base: /srv/app + path: src/code.gitea.io/gitea + +pipeline: + test: + image: webhippie/golang:${GO_VERSION} + 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 + + test-mysql: + image: webhippie/golang:${GO_VERSION} + pull: true + commands: + - make test-mysql + when: + event: push + + test-pgsql: + image: webhippie/golang:${GO_VERSION} + pull: true + commands: + - make test-pgsql + when: + event: push + + updater: + image: karalabe/xgo-latest:latest + pull: true + commands: + - make publish + 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 + + release: + image: plugins/s3 + path_style: true + source: dist/release/ + target: /lgtm/master + when: + event: push + branch: master + matrix: + GO_VERSION: 1.7 + + release: + image: plugins/s3 + path_style: true + source: dist/release/ + target: /lgtm/$$TAG + when: + event: tag + branch: refs/tags/* + matrix: + GO_VERSION: 1.7 + + latest: + image: plugins/s3 + path_style: true + source: dist/latest/ + target: /lgtm/latest + when: + event: tag + branch: refs/tags/* + matrix: + GO_VERSION: 1.7 + + github: + image: plugins/github-release + files: + - dist/release/* + when: + event: tag + branch: refs/tags/* + matrix: + GO_VERSION: 1.7 + + gitter: + image: plugins/gitter + +services: + mysql: + image: mysql:5.7 + environment: + - MYSQL_DATABASE=test + - MYSQL_ALLOW_EMPTY_PASSWORD=yes + when: + event: push + + pgsql: + image: postgres:9.5 + environment: + - POSTGRES_DB=test + when: + event: push + +matrix: + GO_VERSION: + - 1.6 + - 1.7 |