mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-01 09:51:39 -05:00
Use go 1.12 for tests and deprecate go 1.9 (#6186)
Blocked until 1.12 docker images are released
This commit is contained in:
parent
7afe81f28e
commit
1142632f1a
1 changed files with 22 additions and 22 deletions
44
.drone.yml
44
.drone.yml
|
@ -56,7 +56,7 @@ pipeline:
|
||||||
event: [ push, tag, pull_request ]
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
build-without-gcc:
|
build-without-gcc:
|
||||||
image: golang:1.9
|
image: golang:1.10 # this step is kept as the lowest version of golang that we support
|
||||||
pull: true
|
pull: true
|
||||||
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
|
||||||
|
@ -64,7 +64,7 @@ pipeline:
|
||||||
event: [ push, tag, pull_request ]
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
build:
|
build:
|
||||||
image: golang:1.11
|
image: golang:1.12
|
||||||
pull: true
|
pull: true
|
||||||
environment:
|
environment:
|
||||||
TAGS: bindata sqlite sqlite_unlock_notify
|
TAGS: bindata sqlite sqlite_unlock_notify
|
||||||
|
@ -82,8 +82,8 @@ pipeline:
|
||||||
when:
|
when:
|
||||||
event: [ push, tag, pull_request ]
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
test:
|
unit-test:
|
||||||
image: golang:1.11
|
image: golang:1.12
|
||||||
pull: true
|
pull: true
|
||||||
group: test
|
group: test
|
||||||
environment:
|
environment:
|
||||||
|
@ -94,8 +94,8 @@ pipeline:
|
||||||
event: [ push, pull_request ]
|
event: [ push, pull_request ]
|
||||||
branch: [ master ]
|
branch: [ master ]
|
||||||
|
|
||||||
test:
|
release-test:
|
||||||
image: golang:1.11
|
image: golang:1.12
|
||||||
pull: true
|
pull: true
|
||||||
group: test
|
group: test
|
||||||
environment:
|
environment:
|
||||||
|
@ -106,8 +106,8 @@ pipeline:
|
||||||
event: [ push, pull_request ]
|
event: [ push, pull_request ]
|
||||||
branch: [ release/* ]
|
branch: [ release/* ]
|
||||||
|
|
||||||
test:
|
tag-test:
|
||||||
image: golang:1.11
|
image: golang:1.12
|
||||||
pull: true
|
pull: true
|
||||||
group: test
|
group: test
|
||||||
environment:
|
environment:
|
||||||
|
@ -118,7 +118,7 @@ pipeline:
|
||||||
event: [ tag ]
|
event: [ tag ]
|
||||||
|
|
||||||
test-sqlite:
|
test-sqlite:
|
||||||
image: golang:1.11
|
image: golang:1.12
|
||||||
pull: true
|
pull: true
|
||||||
group: test
|
group: test
|
||||||
environment:
|
environment:
|
||||||
|
@ -133,7 +133,7 @@ pipeline:
|
||||||
event: [ push, tag, pull_request ]
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
test-mysql:
|
test-mysql:
|
||||||
image: golang:1.11
|
image: golang:1.12
|
||||||
pull: true
|
pull: true
|
||||||
group: test
|
group: test
|
||||||
environment:
|
environment:
|
||||||
|
@ -148,8 +148,8 @@ pipeline:
|
||||||
event: [ push, pull_request ]
|
event: [ push, pull_request ]
|
||||||
branch: [ master ]
|
branch: [ master ]
|
||||||
|
|
||||||
test-mysql:
|
tag-test-mysql:
|
||||||
image: golang:1.11
|
image: golang:1.12
|
||||||
pull: true
|
pull: true
|
||||||
group: test
|
group: test
|
||||||
environment:
|
environment:
|
||||||
|
@ -165,7 +165,7 @@ pipeline:
|
||||||
event: [ tag ]
|
event: [ tag ]
|
||||||
|
|
||||||
test-pgsql:
|
test-pgsql:
|
||||||
image: golang:1.11
|
image: golang:1.12
|
||||||
pull: true
|
pull: true
|
||||||
group: test
|
group: test
|
||||||
environment:
|
environment:
|
||||||
|
@ -181,7 +181,7 @@ pipeline:
|
||||||
event: [ push, tag, pull_request ]
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
test-mssql:
|
test-mssql:
|
||||||
image: golang:1.11
|
image: golang:1.12
|
||||||
pull: true
|
pull: true
|
||||||
group: test
|
group: test
|
||||||
environment:
|
environment:
|
||||||
|
@ -196,7 +196,7 @@ pipeline:
|
||||||
event: [ push, tag, pull_request ]
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
bench-sqlite:
|
bench-sqlite:
|
||||||
image: golang:1.11
|
image: golang:1.12
|
||||||
pull: true
|
pull: true
|
||||||
group: bench
|
group: bench
|
||||||
commands:
|
commands:
|
||||||
|
@ -205,7 +205,7 @@ pipeline:
|
||||||
event: [ tag ]
|
event: [ tag ]
|
||||||
|
|
||||||
bench-mysql:
|
bench-mysql:
|
||||||
image: golang:1.11
|
image: golang:1.12
|
||||||
pull: true
|
pull: true
|
||||||
group: bench
|
group: bench
|
||||||
commands:
|
commands:
|
||||||
|
@ -214,7 +214,7 @@ pipeline:
|
||||||
event: [ tag ]
|
event: [ tag ]
|
||||||
|
|
||||||
bench-mssql:
|
bench-mssql:
|
||||||
image: golang:1.11
|
image: golang:1.12
|
||||||
pull: true
|
pull: true
|
||||||
group: bench
|
group: bench
|
||||||
commands:
|
commands:
|
||||||
|
@ -223,7 +223,7 @@ pipeline:
|
||||||
event: [ tag ]
|
event: [ tag ]
|
||||||
|
|
||||||
bench-pgsql:
|
bench-pgsql:
|
||||||
image: golang:1.11
|
image: golang:1.12
|
||||||
pull: true
|
pull: true
|
||||||
group: bench
|
group: bench
|
||||||
commands:
|
commands:
|
||||||
|
@ -232,7 +232,7 @@ pipeline:
|
||||||
event: [ tag ]
|
event: [ tag ]
|
||||||
|
|
||||||
generate-coverage:
|
generate-coverage:
|
||||||
image: golang:1.11
|
image: golang:1.12
|
||||||
pull: true
|
pull: true
|
||||||
environment:
|
environment:
|
||||||
TAGS: bindata
|
TAGS: bindata
|
||||||
|
@ -290,7 +290,7 @@ pipeline:
|
||||||
when:
|
when:
|
||||||
event: [ pull_request ]
|
event: [ pull_request ]
|
||||||
|
|
||||||
docker:
|
release-docker:
|
||||||
image: plugins/docker:17.12
|
image: plugins/docker:17.12
|
||||||
pull: true
|
pull: true
|
||||||
secrets: [ docker_username, docker_password ]
|
secrets: [ docker_username, docker_password ]
|
||||||
|
@ -323,7 +323,7 @@ pipeline:
|
||||||
when:
|
when:
|
||||||
event: [ push, tag ]
|
event: [ push, tag ]
|
||||||
|
|
||||||
release:
|
tag-release:
|
||||||
image: plugins/s3:1
|
image: plugins/s3:1
|
||||||
pull: true
|
pull: true
|
||||||
secrets: [ aws_access_key_id, aws_secret_access_key ]
|
secrets: [ aws_access_key_id, aws_secret_access_key ]
|
||||||
|
@ -337,7 +337,7 @@ pipeline:
|
||||||
when:
|
when:
|
||||||
event: [ tag ]
|
event: [ tag ]
|
||||||
|
|
||||||
release:
|
release-branch-release:
|
||||||
image: plugins/s3:1
|
image: plugins/s3:1
|
||||||
pull: true
|
pull: true
|
||||||
secrets: [ aws_access_key_id, aws_secret_access_key ]
|
secrets: [ aws_access_key_id, aws_secret_access_key ]
|
||||||
|
|
Loading…
Reference in a new issue