Skip to content

Commit

Permalink
Use go 1.12 for tests and deprecate go 1.9 (#6186)
Browse files Browse the repository at this point in the history
Blocked until 1.12 docker images are released
  • Loading branch information
techknowlogick authored and appleboy committed Feb 26, 2019
1 parent 7afe81f commit 1142632
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ pipeline:
event: [ push, tag, pull_request ]

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
commands:
- go build -o gitea_no_gcc # test if build succeeds without the sqlite tag
when:
event: [ push, tag, pull_request ]

build:
image: golang:1.11
image: golang:1.12
pull: true
environment:
TAGS: bindata sqlite sqlite_unlock_notify
Expand All @@ -82,8 +82,8 @@ pipeline:
when:
event: [ push, tag, pull_request ]

test:
image: golang:1.11
unit-test:
image: golang:1.12
pull: true
group: test
environment:
Expand All @@ -94,8 +94,8 @@ pipeline:
event: [ push, pull_request ]
branch: [ master ]

test:
image: golang:1.11
release-test:
image: golang:1.12
pull: true
group: test
environment:
Expand All @@ -106,8 +106,8 @@ pipeline:
event: [ push, pull_request ]
branch: [ release/* ]

test:
image: golang:1.11
tag-test:
image: golang:1.12
pull: true
group: test
environment:
Expand All @@ -118,7 +118,7 @@ pipeline:
event: [ tag ]

test-sqlite:
image: golang:1.11
image: golang:1.12
pull: true
group: test
environment:
Expand All @@ -133,7 +133,7 @@ pipeline:
event: [ push, tag, pull_request ]

test-mysql:
image: golang:1.11
image: golang:1.12
pull: true
group: test
environment:
Expand All @@ -148,8 +148,8 @@ pipeline:
event: [ push, pull_request ]
branch: [ master ]

test-mysql:
image: golang:1.11
tag-test-mysql:
image: golang:1.12
pull: true
group: test
environment:
Expand All @@ -165,7 +165,7 @@ pipeline:
event: [ tag ]

test-pgsql:
image: golang:1.11
image: golang:1.12
pull: true
group: test
environment:
Expand All @@ -181,7 +181,7 @@ pipeline:
event: [ push, tag, pull_request ]

test-mssql:
image: golang:1.11
image: golang:1.12
pull: true
group: test
environment:
Expand All @@ -196,7 +196,7 @@ pipeline:
event: [ push, tag, pull_request ]

bench-sqlite:
image: golang:1.11
image: golang:1.12
pull: true
group: bench
commands:
Expand All @@ -205,7 +205,7 @@ pipeline:
event: [ tag ]

bench-mysql:
image: golang:1.11
image: golang:1.12
pull: true
group: bench
commands:
Expand All @@ -214,7 +214,7 @@ pipeline:
event: [ tag ]

bench-mssql:
image: golang:1.11
image: golang:1.12
pull: true
group: bench
commands:
Expand All @@ -223,7 +223,7 @@ pipeline:
event: [ tag ]

bench-pgsql:
image: golang:1.11
image: golang:1.12
pull: true
group: bench
commands:
Expand All @@ -232,7 +232,7 @@ pipeline:
event: [ tag ]

generate-coverage:
image: golang:1.11
image: golang:1.12
pull: true
environment:
TAGS: bindata
Expand Down Expand Up @@ -290,7 +290,7 @@ pipeline:
when:
event: [ pull_request ]

docker:
release-docker:
image: plugins/docker:17.12
pull: true
secrets: [ docker_username, docker_password ]
Expand Down Expand Up @@ -323,7 +323,7 @@ pipeline:
when:
event: [ push, tag ]

release:
tag-release:
image: plugins/s3:1
pull: true
secrets: [ aws_access_key_id, aws_secret_access_key ]
Expand All @@ -337,7 +337,7 @@ pipeline:
when:
event: [ tag ]

release:
release-branch-release:
image: plugins/s3:1
pull: true
secrets: [ aws_access_key_id, aws_secret_access_key ]
Expand Down

0 comments on commit 1142632

Please sign in to comment.