feat: testing in go 1.10 version. (#3899)
This commit is contained in:
parent
eec2179e73
commit
0b718e0d7b
40
.drone.yml
40
.drone.yml
|
@ -1,5 +1,5 @@
|
||||||
workspace:
|
workspace:
|
||||||
base: /srv/app
|
base: /go
|
||||||
path: src/code.gitea.io/gitea
|
path: src/code.gitea.io/gitea
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
|
@ -56,21 +56,18 @@ pipeline:
|
||||||
event: [ push, tag, pull_request ]
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
build-without-gcc:
|
build-without-gcc:
|
||||||
image: webhippie/golang:1.8
|
image: golang:1.8
|
||||||
pull: true
|
pull: true
|
||||||
environment:
|
|
||||||
GOPATH: /srv/app
|
|
||||||
commands:
|
commands:
|
||||||
- go build -o gitea_no_gcc # test if build succeeds without the sqlite tag
|
- go build -o gitea_no_gcc # test if build succeeds without the sqlite tag
|
||||||
when:
|
when:
|
||||||
event: [ push, tag, pull_request ]
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
build:
|
build:
|
||||||
image: webhippie/golang:edge
|
image: golang:1.10
|
||||||
pull: true
|
pull: true
|
||||||
environment:
|
environment:
|
||||||
TAGS: bindata sqlite
|
TAGS: bindata sqlite
|
||||||
GOPATH: /srv/app
|
|
||||||
commands:
|
commands:
|
||||||
- make clean
|
- make clean
|
||||||
- make generate
|
- make generate
|
||||||
|
@ -85,12 +82,11 @@ pipeline:
|
||||||
event: [ push, tag, pull_request ]
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
test:
|
test:
|
||||||
image: webhippie/golang:edge
|
image: golang:1.10
|
||||||
pull: true
|
pull: true
|
||||||
group: test
|
group: test
|
||||||
environment:
|
environment:
|
||||||
TAGS: bindata sqlite
|
TAGS: bindata sqlite
|
||||||
GOPATH: /srv/app
|
|
||||||
commands:
|
commands:
|
||||||
- make unit-test-coverage
|
- make unit-test-coverage
|
||||||
when:
|
when:
|
||||||
|
@ -98,12 +94,11 @@ pipeline:
|
||||||
branch: [ master ]
|
branch: [ master ]
|
||||||
|
|
||||||
test:
|
test:
|
||||||
image: webhippie/golang:edge
|
image: golang:1.10
|
||||||
pull: true
|
pull: true
|
||||||
group: test
|
group: test
|
||||||
environment:
|
environment:
|
||||||
TAGS: bindata sqlite
|
TAGS: bindata sqlite
|
||||||
GOPATH: /srv/app
|
|
||||||
commands:
|
commands:
|
||||||
- make test
|
- make test
|
||||||
when:
|
when:
|
||||||
|
@ -111,12 +106,11 @@ pipeline:
|
||||||
branch: [ release/* ]
|
branch: [ release/* ]
|
||||||
|
|
||||||
test:
|
test:
|
||||||
image: webhippie/golang:edge
|
image: golang:1.10
|
||||||
pull: true
|
pull: true
|
||||||
group: test
|
group: test
|
||||||
environment:
|
environment:
|
||||||
TAGS: bindata
|
TAGS: bindata
|
||||||
GOPATH: /srv/app
|
|
||||||
commands:
|
commands:
|
||||||
- make test
|
- make test
|
||||||
when:
|
when:
|
||||||
|
@ -124,60 +118,61 @@ pipeline:
|
||||||
|
|
||||||
# Commented until db locking have been resolved!
|
# Commented until db locking have been resolved!
|
||||||
# test-sqlite:
|
# test-sqlite:
|
||||||
# image: webhippie/golang:edge
|
# image: golang:1.10
|
||||||
# pull: true
|
# pull: true
|
||||||
# group: test
|
# group: test
|
||||||
# environment:
|
# environment:
|
||||||
# TAGS: bindata
|
# TAGS: bindata
|
||||||
# GOPATH: /srv/app
|
|
||||||
# commands:
|
# commands:
|
||||||
# - make test-sqlite
|
# - make test-sqlite
|
||||||
# when:
|
# when:
|
||||||
# event: [ push, tag, pull_request ]
|
# event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
test-mysql:
|
test-mysql:
|
||||||
image: webhippie/golang:edge
|
image: golang:1.10
|
||||||
pull: true
|
pull: true
|
||||||
group: test
|
group: test
|
||||||
environment:
|
environment:
|
||||||
TAGS: bindata
|
TAGS: bindata
|
||||||
GOPATH: /srv/app
|
|
||||||
commands:
|
commands:
|
||||||
|
- curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
|
||||||
|
- apt-get install -y git-lfs
|
||||||
- make integration-test-coverage
|
- make integration-test-coverage
|
||||||
when:
|
when:
|
||||||
event: [ push, pull_request ]
|
event: [ push, pull_request ]
|
||||||
branch: [ master ]
|
branch: [ master ]
|
||||||
|
|
||||||
test-mysql:
|
test-mysql:
|
||||||
image: webhippie/golang:edge
|
image: golang:1.10
|
||||||
pull: true
|
pull: true
|
||||||
group: test
|
group: test
|
||||||
environment:
|
environment:
|
||||||
TAGS: bindata
|
TAGS: bindata
|
||||||
GOPATH: /srv/app
|
|
||||||
commands:
|
commands:
|
||||||
|
- curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
|
||||||
|
- apt-get install -y git-lfs
|
||||||
- make test-mysql
|
- make test-mysql
|
||||||
when:
|
when:
|
||||||
event: [ tag ]
|
event: [ tag ]
|
||||||
|
|
||||||
test-pgsql:
|
test-pgsql:
|
||||||
image: webhippie/golang:edge
|
image: golang:1.10
|
||||||
pull: true
|
pull: true
|
||||||
group: test
|
group: test
|
||||||
environment:
|
environment:
|
||||||
TAGS: bindata
|
TAGS: bindata
|
||||||
GOPATH: /srv/app
|
|
||||||
commands:
|
commands:
|
||||||
|
- curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
|
||||||
|
- apt-get install -y git-lfs
|
||||||
- make test-pgsql
|
- make test-pgsql
|
||||||
when:
|
when:
|
||||||
event: [ push, tag, pull_request ]
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
generate-coverage:
|
generate-coverage:
|
||||||
image: webhippie/golang:edge
|
image: golang:1.10
|
||||||
pull: true
|
pull: true
|
||||||
environment:
|
environment:
|
||||||
TAGS: bindata
|
TAGS: bindata
|
||||||
GOPATH: /srv/app
|
|
||||||
commands:
|
commands:
|
||||||
- make coverage
|
- make coverage
|
||||||
when:
|
when:
|
||||||
|
@ -198,7 +193,6 @@ pipeline:
|
||||||
pull: true
|
pull: true
|
||||||
environment:
|
environment:
|
||||||
TAGS: bindata sqlite
|
TAGS: bindata sqlite
|
||||||
GOPATH: /srv/app
|
|
||||||
commands:
|
commands:
|
||||||
- make release
|
- make release
|
||||||
when:
|
when:
|
||||||
|
|
Loading…
Reference in a new issue