forked from mirror/gitea
Added matrix drone builds
This commit is contained in:
parent
4c03974326
commit
fd090dc29b
50
.drone.yml
50
.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
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user