aboutsummaryrefslogtreecommitdiffstats
path: root/.drone.yml
diff options
context:
space:
mode:
authorThomas Boerger <thomas@webhippie.de>2016-11-25 01:32:43 +0100
committerThomas Boerger <tboerger@suse.de>2016-11-25 10:11:49 +0100
commit755ed847409aef81dd09fec6179a37e837ff16ad (patch)
treea52d1576608713d84dd46cab6ab2706bd256dfc5 /.drone.yml
parent5b17661c5d52dcb3d23b0316b3a52f9ec7744783 (diff)
downloadgitea-755ed847409aef81dd09fec6179a37e837ff16ad.tar.gz
gitea-755ed847409aef81dd09fec6179a37e837ff16ad.zip
Be more explicit and dropped matrix builds from drone
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml79
1 files changed, 30 insertions, 49 deletions
diff --git a/.drone.yml b/.drone.yml
index f4608b7661..6b18b8f063 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
+ event: [ tag ]
+ branch: [ refs/tags/* ]
docker:
image: plugins/docker
repo: gitea/gitea
tags: [ 'latest' ]
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/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 ]