summaryrefslogtreecommitdiffstats
path: root/.drone.yml
diff options
context:
space:
mode:
authorThomas Boerger <tboerger@suse.de>2016-11-24 14:48:40 +0100
committerThomas Boerger <tboerger@suse.de>2016-11-24 14:48:40 +0100
commitfd090dc29b2482b60fb821912be2859209aeb1a5 (patch)
tree668a41f1391d087c578263774870c08c0bac6662 /.drone.yml
parent4c0397432660adb1204975f4156c55e9bc204ba0 (diff)
downloadgitea-fd090dc29b2482b60fb821912be2859209aeb1a5.tar.gz
gitea-fd090dc29b2482b60fb821912be2859209aeb1a5.zip
Added matrix drone builds
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml50
1 files changed, 36 insertions, 14 deletions
diff --git a/.drone.yml b/.drone.yml
index fdc0afea45..f4608b7661 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -4,30 +4,30 @@ workspace:
pipeline:
test:
- image: webhippie/golang:edge
+ image: webhippie/golang:${GO_VERSION}
pull: true
environment:
- CGO_ENABLED: 0
+ CGO_ENABLED: 1
TAGS: cert sqlite pam miniwinsvc
commands:
- apk -U add linux-pam-dev openssh-client
- make clean
- make vet
-# - make lint fails currently with 500 errors
+ # - make lint
- make test
- make build
- mysql:
- image: webhippie/golang:edge
+ test-mysql:
+ image: webhippie/golang:${GO_VERSION}
pull: true
commands:
- make test-mysql
when:
event: push
- pgsql:
- image: webhippie/golang:edge
+ test-pgsql:
+ image: webhippie/golang:${GO_VERSION}
pull: true
commands:
- make test-pgsql
@@ -42,28 +42,37 @@ 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
- docker1:
+ docker:
image: plugins/docker
repo: gitea/gitea
tags: [ '${TAG}' ]
when:
event: tag
branch: refs/tags/*
+ matrix:
+ GO_VERSION: 1.7
- docker2:
+ docker:
image: plugins/docker
repo: gitea/gitea
tags: [ 'latest' ]
when:
event: push
branch: master
+ matrix:
+ GO_VERSION: 1.7
- release1:
+ release:
image: plugins/s3
path_style: true
source: dist/release/
@@ -71,8 +80,10 @@ pipeline:
when:
event: push
branch: master
+ matrix:
+ GO_VERSION: 1.7
- release2:
+ release:
image: plugins/s3
path_style: true
source: dist/release/
@@ -80,8 +91,10 @@ pipeline:
when:
event: tag
branch: refs/tags/*
+ matrix:
+ GO_VERSION: 1.7
- release3:
+ latest:
image: plugins/s3
path_style: true
source: dist/latest/
@@ -89,6 +102,8 @@ pipeline:
when:
event: tag
branch: refs/tags/*
+ matrix:
+ GO_VERSION: 1.7
github:
image: plugins/github-release
@@ -97,12 +112,14 @@ pipeline:
when:
event: tag
branch: refs/tags/*
+ matrix:
+ GO_VERSION: 1.7
gitter:
image: plugins/gitter
services:
- mysqlsvc:
+ mysql:
image: mysql:5.7
environment:
- MYSQL_DATABASE=test
@@ -110,9 +127,14 @@ services:
when:
event: push
- pgsqlsvc:
+ pgsql:
image: postgres:9.5
environment:
- POSTGRES_DB=test
when:
event: push
+
+matrix:
+ GO_VERSION:
+ - 1.6
+ - 1.7