From bc6be39742b2cc06b089745a2ecfbe38aa838ab8 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Mon, 25 Feb 2019 21:26:04 -0500 Subject: [PATCH 1/2] Use go 1.12 for tests and deprecate go 1.9 --- .drone.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.drone.yml b/.drone.yml index bd33d21382126..52a4dac4d17e2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -56,7 +56,7 @@ pipeline: event: [ push, tag, pull_request ] build-without-gcc: - image: golang:1.9 + image: golang:1.10 pull: true commands: - go build -o gitea_no_gcc # test if build succeeds without the sqlite tag @@ -83,7 +83,7 @@ pipeline: event: [ push, tag, pull_request ] test: - image: golang:1.11 + image: golang:1.12 pull: true group: test environment: @@ -95,7 +95,7 @@ pipeline: branch: [ master ] test: - image: golang:1.11 + image: golang:1.12 pull: true group: test environment: @@ -107,7 +107,7 @@ pipeline: branch: [ release/* ] test: - image: golang:1.11 + image: golang:1.12 pull: true group: test environment: @@ -118,7 +118,7 @@ pipeline: event: [ tag ] test-sqlite: - image: golang:1.11 + image: golang:1.12 pull: true group: test environment: @@ -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: @@ -149,7 +149,7 @@ pipeline: branch: [ master ] test-mysql: - image: golang:1.11 + image: golang:1.12 pull: true group: test environment: @@ -165,7 +165,7 @@ pipeline: event: [ tag ] test-pgsql: - image: golang:1.11 + image: golang:1.12 pull: true group: test environment: @@ -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: @@ -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: @@ -205,7 +205,7 @@ pipeline: event: [ tag ] bench-mysql: - image: golang:1.11 + image: golang:1.12 pull: true group: bench commands: @@ -214,7 +214,7 @@ pipeline: event: [ tag ] bench-mssql: - image: golang:1.11 + image: golang:1.12 pull: true group: bench commands: @@ -223,7 +223,7 @@ pipeline: event: [ tag ] bench-pgsql: - image: golang:1.11 + image: golang:1.12 pull: true group: bench commands: @@ -232,7 +232,7 @@ pipeline: event: [ tag ] generate-coverage: - image: golang:1.11 + image: golang:1.12 pull: true environment: TAGS: bindata From 44fdf42190ff444185f19bb17609d9a8e660c0ad Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Tue, 26 Feb 2019 16:56:01 -0500 Subject: [PATCH 2/2] Fix duplicated step names (in preperation for drone 1.0.0) --- .drone.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.drone.yml b/.drone.yml index dc8723a53d892..7fb66c2cd6d8c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -56,7 +56,7 @@ pipeline: event: [ push, tag, pull_request ] build-without-gcc: - image: golang:1.10 + 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 @@ -64,7 +64,7 @@ pipeline: event: [ push, tag, pull_request ] build: - image: golang:1.11 + image: golang:1.12 pull: true environment: TAGS: bindata sqlite sqlite_unlock_notify @@ -82,7 +82,7 @@ pipeline: when: event: [ push, tag, pull_request ] - test: + unit-test: image: golang:1.12 pull: true group: test @@ -94,7 +94,7 @@ pipeline: event: [ push, pull_request ] branch: [ master ] - test: + release-test: image: golang:1.12 pull: true group: test @@ -106,7 +106,7 @@ pipeline: event: [ push, pull_request ] branch: [ release/* ] - test: + tag-test: image: golang:1.12 pull: true group: test @@ -148,7 +148,7 @@ pipeline: event: [ push, pull_request ] branch: [ master ] - test-mysql: + tag-test-mysql: image: golang:1.12 pull: true group: test @@ -290,7 +290,7 @@ pipeline: when: event: [ pull_request ] - docker: + release-docker: image: plugins/docker:17.12 pull: true secrets: [ docker_username, docker_password ] @@ -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 ] @@ -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 ]