From c60bc9b7cfee757a0c5a099570ff4a0aa50193f1 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 5 May 2018 20:18:48 +0800 Subject: [PATCH 1/8] feat: testing in go 1.10 version. --- .drone.yml | 34 +++++++++++----------------------- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/.drone.yml b/.drone.yml index 95b92ffaa1578..e3675b223bb21 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,5 +1,5 @@ workspace: - base: /srv/app + base: /go path: src/code.gitea.io/gitea clone: @@ -56,21 +56,18 @@ pipeline: event: [ push, tag, pull_request ] build-without-gcc: - image: webhippie/golang:1.8 + image: golang:1.10 pull: true - environment: - GOPATH: /srv/app commands: - go build -o gitea_no_gcc # test if build succeeds without the sqlite tag when: event: [ push, tag, pull_request ] build: - image: webhippie/golang:edge + image: golang:1.10 pull: true environment: TAGS: bindata sqlite - GOPATH: /srv/app commands: - make clean - make generate @@ -85,12 +82,11 @@ pipeline: event: [ push, tag, pull_request ] test: - image: webhippie/golang:edge + image: golang:1.10 pull: true group: test environment: TAGS: bindata sqlite - GOPATH: /srv/app commands: - make unit-test-coverage when: @@ -98,12 +94,11 @@ pipeline: branch: [ master ] test: - image: webhippie/golang:edge + image: golang:1.10 pull: true group: test environment: TAGS: bindata sqlite - GOPATH: /srv/app commands: - make test when: @@ -111,12 +106,11 @@ pipeline: branch: [ release/* ] test: - image: webhippie/golang:edge + image: golang:1.10 pull: true group: test environment: TAGS: bindata - GOPATH: /srv/app commands: - make test when: @@ -124,24 +118,22 @@ pipeline: # Commented until db locking have been resolved! # test-sqlite: - # image: webhippie/golang:edge + # image: golang:1.10 # pull: true # group: test # environment: # TAGS: bindata - # GOPATH: /srv/app # commands: # - make test-sqlite # when: # event: [ push, tag, pull_request ] test-mysql: - image: webhippie/golang:edge + image: golang:1.10 pull: true group: test environment: TAGS: bindata - GOPATH: /srv/app commands: - make integration-test-coverage when: @@ -149,35 +141,32 @@ pipeline: branch: [ master ] test-mysql: - image: webhippie/golang:edge + image: golang:1.10 pull: true group: test environment: TAGS: bindata - GOPATH: /srv/app commands: - make test-mysql when: event: [ tag ] test-pgsql: - image: webhippie/golang:edge + image: golang:1.10 pull: true group: test environment: TAGS: bindata - GOPATH: /srv/app commands: - make test-pgsql when: event: [ push, tag, pull_request ] generate-coverage: - image: webhippie/golang:edge + image: golang:1.10 pull: true environment: TAGS: bindata - GOPATH: /srv/app commands: - make coverage when: @@ -198,7 +187,6 @@ pipeline: pull: true environment: TAGS: bindata sqlite - GOPATH: /srv/app commands: - make release when: From 261d11f2e289e9e31b1e2641dcb4cda305d14bce Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 5 May 2018 21:04:36 +0800 Subject: [PATCH 2/8] add git-lfs command Signed-off-by: Bo-Yi Wu --- .drone.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.drone.yml b/.drone.yml index e3675b223bb21..22f6b8a1c8324 100644 --- a/.drone.yml +++ b/.drone.yml @@ -147,6 +147,7 @@ pipeline: environment: TAGS: bindata commands: + - apk update && apk add git-lfs - make test-mysql when: event: [ tag ] @@ -158,6 +159,7 @@ pipeline: environment: TAGS: bindata commands: + - apk update && apk add git-lfs - make test-pgsql when: event: [ push, tag, pull_request ] From 14679e3ab601bc234bf605b700f7f8f8ea6520a2 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 5 May 2018 21:12:42 +0800 Subject: [PATCH 3/8] add git-lfs command Signed-off-by: Bo-Yi Wu --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index 22f6b8a1c8324..f32fe70253cb9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -164,6 +164,7 @@ pipeline: when: event: [ push, tag, pull_request ] + generate-coverage: image: golang:1.10 pull: true From e3de6286f0506bf989209100ffd786c2b70053a5 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 5 May 2018 21:16:55 +0800 Subject: [PATCH 4/8] revert Signed-off-by: Bo-Yi Wu --- .drone.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index f32fe70253cb9..22f6b8a1c8324 100644 --- a/.drone.yml +++ b/.drone.yml @@ -164,7 +164,6 @@ pipeline: when: event: [ push, tag, pull_request ] - generate-coverage: image: golang:1.10 pull: true From febb4bf71175bde04f8b065f32491959146973b1 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 5 May 2018 21:23:32 +0800 Subject: [PATCH 5/8] update image Signed-off-by: Bo-Yi Wu --- .drone.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index 22f6b8a1c8324..2395937651790 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-alpine 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.10 + image: golang:1.10-alpine pull: true environment: TAGS: bindata sqlite @@ -82,7 +82,7 @@ pipeline: event: [ push, tag, pull_request ] test: - image: golang:1.10 + image: golang:1.10-alpine pull: true group: test environment: @@ -94,7 +94,7 @@ pipeline: branch: [ master ] test: - image: golang:1.10 + image: golang:1.10-alpine pull: true group: test environment: @@ -106,7 +106,7 @@ pipeline: branch: [ release/* ] test: - image: golang:1.10 + image: golang:1.10-alpine pull: true group: test environment: @@ -118,7 +118,7 @@ pipeline: # Commented until db locking have been resolved! # test-sqlite: - # image: golang:1.10 + # image: golang:1.10-alpine # pull: true # group: test # environment: @@ -129,19 +129,20 @@ pipeline: # event: [ push, tag, pull_request ] test-mysql: - image: golang:1.10 + image: golang:1.10-alpine pull: true group: test environment: TAGS: bindata commands: + - apk update && apk add git-lfs - make integration-test-coverage when: event: [ push, pull_request ] branch: [ master ] test-mysql: - image: golang:1.10 + image: golang:1.10-alpine pull: true group: test environment: @@ -153,7 +154,7 @@ pipeline: event: [ tag ] test-pgsql: - image: golang:1.10 + image: golang:1.10-alpine pull: true group: test environment: @@ -165,7 +166,7 @@ pipeline: event: [ push, tag, pull_request ] generate-coverage: - image: golang:1.10 + image: golang:1.10-alpine pull: true environment: TAGS: bindata From cd6d676f23d04c320a915b111be6ce33f1ba6308 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 5 May 2018 21:28:34 +0800 Subject: [PATCH 6/8] update command Signed-off-by: Bo-Yi Wu --- .drone.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2395937651790..49d5cc4a22174 100644 --- a/.drone.yml +++ b/.drone.yml @@ -56,7 +56,7 @@ pipeline: event: [ push, tag, pull_request ] build-without-gcc: - image: golang:1.10-alpine + image: golang:1.10 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.10-alpine + image: golang:1.10 pull: true environment: TAGS: bindata sqlite @@ -82,7 +82,7 @@ pipeline: event: [ push, tag, pull_request ] test: - image: golang:1.10-alpine + image: golang:1.10 pull: true group: test environment: @@ -94,7 +94,7 @@ pipeline: branch: [ master ] test: - image: golang:1.10-alpine + image: golang:1.10 pull: true group: test environment: @@ -106,7 +106,7 @@ pipeline: branch: [ release/* ] test: - image: golang:1.10-alpine + image: golang:1.10 pull: true group: test environment: @@ -118,7 +118,7 @@ pipeline: # Commented until db locking have been resolved! # test-sqlite: - # image: golang:1.10-alpine + # image: golang:1.10 # pull: true # group: test # environment: @@ -129,44 +129,44 @@ pipeline: # event: [ push, tag, pull_request ] test-mysql: - image: golang:1.10-alpine + image: golang:1.10 pull: true group: test environment: TAGS: bindata commands: - - apk update && apk add git-lfs + - apt-get update && apt-get install -y git-lfs - make integration-test-coverage when: event: [ push, pull_request ] branch: [ master ] test-mysql: - image: golang:1.10-alpine + image: golang:1.10 pull: true group: test environment: TAGS: bindata commands: - - apk update && apk add git-lfs + - apt-get update && apt-get install -y git-lfs - make test-mysql when: event: [ tag ] test-pgsql: - image: golang:1.10-alpine + image: golang:1.10 pull: true group: test environment: TAGS: bindata commands: - - apk update && apk add git-lfs + - apt-get update && apt-get install -y git-lfs - make test-pgsql when: event: [ push, tag, pull_request ] generate-coverage: - image: golang:1.10-alpine + image: golang:1.10 pull: true environment: TAGS: bindata From 54476d94196fb8303a1f9ee0eda11ab996b0e3aa Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 5 May 2018 22:43:05 +0800 Subject: [PATCH 7/8] update command Signed-off-by: Bo-Yi Wu --- .drone.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 49d5cc4a22174..33336f00c9735 100644 --- a/.drone.yml +++ b/.drone.yml @@ -135,7 +135,8 @@ pipeline: environment: TAGS: bindata commands: - - apt-get update && apt-get install -y git-lfs + - curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash + - apt-get install -y git-lfs - make integration-test-coverage when: event: [ push, pull_request ] @@ -148,7 +149,8 @@ pipeline: environment: TAGS: bindata commands: - - apt-get update && apt-get install -y git-lfs + - curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash + - apt-get install -y git-lfs - make test-mysql when: event: [ tag ] @@ -160,7 +162,8 @@ pipeline: environment: TAGS: bindata commands: - - apt-get update && apt-get install -y git-lfs + - curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash + - apt-get install -y git-lfs - make test-pgsql when: event: [ push, tag, pull_request ] From e054e92104098c61caf82172592b0fbf5dd06348 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Mon, 7 May 2018 13:10:14 +0800 Subject: [PATCH 8/8] update build wihtout gcc version Signed-off-by: Bo-Yi Wu --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 33336f00c9735..c568050d447ad 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.8 pull: true commands: - go build -o gitea_no_gcc # test if build succeeds without the sqlite tag