Be more explicit and dropped matrix builds from drone
parent
5b17661c5d
commit
755ed84740
79
.drone.yml
79
.drone.yml
|
@ -4,35 +4,42 @@ workspace:
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
test:
|
test:
|
||||||
image: webhippie/golang:${GO_VERSION}
|
image: webhippie/golang:edge
|
||||||
pull: true
|
pull: true
|
||||||
environment:
|
environment:
|
||||||
CGO_ENABLED: 1
|
CGO_ENABLED: 1
|
||||||
TAGS: cert sqlite pam miniwinsvc
|
TAGS: cert sqlite pam miniwinsvc
|
||||||
commands:
|
commands:
|
||||||
- apk -U add linux-pam-dev openssh-client
|
- apk -U add linux-pam-dev openssh-client
|
||||||
|
|
||||||
- make clean
|
- make clean
|
||||||
- make vet
|
- make vet
|
||||||
# - make lint
|
# - make lint
|
||||||
- make test
|
- make test
|
||||||
- make build
|
- make build
|
||||||
|
when:
|
||||||
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
test-mysql:
|
test-mysql:
|
||||||
image: webhippie/golang:${GO_VERSION}
|
image: webhippie/golang:edge
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
- make test-mysql
|
- make test-mysql
|
||||||
when:
|
when:
|
||||||
event: push
|
event: [ push ]
|
||||||
|
|
||||||
test-pgsql:
|
test-pgsql:
|
||||||
image: webhippie/golang:${GO_VERSION}
|
image: webhippie/golang:edge
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
- make test-pgsql
|
- make test-pgsql
|
||||||
when:
|
when:
|
||||||
event: push
|
event: [ push ]
|
||||||
|
|
||||||
|
coverage:
|
||||||
|
image: plugins/coverage
|
||||||
|
server: https://coverage.gitea.io
|
||||||
|
when:
|
||||||
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
updater:
|
updater:
|
||||||
image: karalabe/xgo-latest:latest
|
image: karalabe/xgo-latest:latest
|
||||||
|
@ -42,78 +49,57 @@ pipeline:
|
||||||
when:
|
when:
|
||||||
event: [ push, tag ]
|
event: [ push, tag ]
|
||||||
branch: [ master, refs/tags/* ]
|
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:
|
docker:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
repo: gitea/gitea
|
repo: gitea/gitea
|
||||||
tags: [ '${TAG}' ]
|
tags: [ '${TAG}' ]
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: [ tag ]
|
||||||
branch: refs/tags/*
|
branch: [ refs/tags/* ]
|
||||||
matrix:
|
|
||||||
GO_VERSION: 1.7
|
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
repo: gitea/gitea
|
repo: gitea/gitea
|
||||||
tags: [ 'latest' ]
|
tags: [ 'latest' ]
|
||||||
when:
|
when:
|
||||||
event: push
|
event: [ push ]
|
||||||
branch: master
|
branch: [ master ]
|
||||||
matrix:
|
|
||||||
GO_VERSION: 1.7
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
image: plugins/s3
|
image: plugins/s3
|
||||||
path_style: true
|
path_style: true
|
||||||
source: dist/release/
|
source: dist/release/
|
||||||
target: /lgtm/master
|
target: /gitea/master
|
||||||
when:
|
when:
|
||||||
event: push
|
event: [ push ]
|
||||||
branch: master
|
branch: [ master ]
|
||||||
matrix:
|
|
||||||
GO_VERSION: 1.7
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
image: plugins/s3
|
image: plugins/s3
|
||||||
path_style: true
|
path_style: true
|
||||||
source: dist/release/
|
source: dist/release/
|
||||||
target: /lgtm/$$TAG
|
target: /gitea/$$TAG
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: [ tag ]
|
||||||
branch: refs/tags/*
|
branch: [ refs/tags/* ]
|
||||||
matrix:
|
|
||||||
GO_VERSION: 1.7
|
|
||||||
|
|
||||||
latest:
|
latest:
|
||||||
image: plugins/s3
|
image: plugins/s3
|
||||||
path_style: true
|
path_style: true
|
||||||
source: dist/latest/
|
source: dist/latest/
|
||||||
target: /lgtm/latest
|
target: /gitea/latest
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: [ tag ]
|
||||||
branch: refs/tags/*
|
branch: [ refs/tags/* ]
|
||||||
matrix:
|
|
||||||
GO_VERSION: 1.7
|
|
||||||
|
|
||||||
github:
|
github:
|
||||||
image: plugins/github-release
|
image: plugins/github-release
|
||||||
files:
|
files:
|
||||||
- dist/release/*
|
- dist/release/*
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: [ tag ]
|
||||||
branch: refs/tags/*
|
branch: [ refs/tags/* ]
|
||||||
matrix:
|
|
||||||
GO_VERSION: 1.7
|
|
||||||
|
|
||||||
gitter:
|
gitter:
|
||||||
image: plugins/gitter
|
image: plugins/gitter
|
||||||
|
@ -125,16 +111,11 @@ services:
|
||||||
- MYSQL_DATABASE=test
|
- MYSQL_DATABASE=test
|
||||||
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
|
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
|
||||||
when:
|
when:
|
||||||
event: push
|
event: [ push ]
|
||||||
|
|
||||||
pgsql:
|
pgsql:
|
||||||
image: postgres:9.5
|
image: postgres:9.5
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_DB=test
|
- POSTGRES_DB=test
|
||||||
when:
|
when:
|
||||||
event: push
|
event: [ push ]
|
||||||
|
|
||||||
matrix:
|
|
||||||
GO_VERSION:
|
|
||||||
- 1.6
|
|
||||||
- 1.7
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
eyJhbGciOiJIUzI1NiJ9.d29ya3NwYWNlOgogIGJhc2U6IC9zcnYvYXBwCiAgcGF0aDogc3JjL2NvZGUuZ2l0ZWEuaW8vZ2l0ZWEKCnBpcGVs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