aboutsummaryrefslogtreecommitdiffstats
path: root/.drone.yml
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2019-08-04 23:58:16 +0200
committerLauris BH <lauris@nix.lv>2019-08-05 00:58:16 +0300
commitcd238bc41598e69a78b4d17370c8929911c5f249 (patch)
treef02847e44e274128eceafc1d8ea72d1aaf82c1bf /.drone.yml
parent5b902e2368fdb67eda4ba033f7167fadf72e4350 (diff)
downloadgitea-cd238bc41598e69a78b4d17370c8929911c5f249.tar.gz
gitea-cd238bc41598e69a78b4d17370c8929911c5f249.zip
build: use GOPROXY and disable download on some steps (#7745)
* build: use GOPROXY * disable download vendor on some steps
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
index dedf4d7410..44e4b225a2 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -66,6 +66,7 @@ steps:
image: golang:1.11 # this step is kept as the lowest version of golang that we support
environment:
GO111MODULE: on
+ GOPROXY: off
commands:
- go build -mod=vendor -o gitea_no_gcc # test if build succeeds without the sqlite tag
@@ -74,6 +75,7 @@ steps:
image: golang:1.12
environment:
GO111MODULE: on
+ GOPROXY: off
GOOS: linux
GOARCH: 386
commands:
@@ -92,6 +94,7 @@ steps:
- make test-vendor
- make build
environment:
+ GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
TAGS: bindata sqlite sqlite_unlock_notify
- name: unit-test
@@ -100,6 +103,7 @@ steps:
commands:
- make unit-test-coverage
environment:
+ GOPROXY: off
TAGS: bindata sqlite sqlite_unlock_notify
depends_on:
- build
@@ -116,6 +120,7 @@ steps:
commands:
- make test
environment:
+ GOPROXY: off
TAGS: bindata sqlite sqlite_unlock_notify
depends_on:
- build
@@ -143,6 +148,7 @@ steps:
commands:
- make test
environment:
+ GOPROXY: off
TAGS: bindata
depends_on:
- tag-pre-condition
@@ -159,6 +165,7 @@ steps:
- timeout -s ABRT 20m make test-sqlite-migration
- timeout -s ABRT 20m make test-sqlite
environment:
+ GOPROXY: off
TAGS: bindata
depends_on:
- build
@@ -172,6 +179,7 @@ steps:
- make test-mysql-migration
- make integration-test-coverage
environment:
+ GOPROXY: off
TAGS: bindata
TEST_LDAP: 1
depends_on:
@@ -192,6 +200,7 @@ steps:
- timeout -s ABRT 20m make test-mysql-migration
- timeout -s ABRT 20m make test-mysql
environment:
+ GOPROXY: off
TAGS: bindata
TEST_LDAP: 1
depends_on:
@@ -209,6 +218,7 @@ steps:
- timeout -s ABRT 20m make test-mysql8-migration
- timeout -s ABRT 20m make test-mysql8
environment:
+ GOPROXY: off
TAGS: bindata
TEST_LDAP: 1
depends_on:
@@ -223,6 +233,7 @@ steps:
- timeout -s ABRT 20m make test-pgsql-migration
- timeout -s ABRT 20m make test-pgsql
environment:
+ GOPROXY: off
TAGS: bindata
TEST_LDAP: 1
depends_on:
@@ -237,6 +248,7 @@ steps:
- make test-mssql-migration
- make test-mssql
environment:
+ GOPROXY: off
TAGS: bindata
TEST_LDAP: 1
depends_on:
@@ -248,6 +260,7 @@ steps:
commands:
- make coverage
environment:
+ GOPROXY: off
TAGS: bindata
depends_on:
- unit-test
@@ -380,6 +393,7 @@ steps:
- make generate
- make release
environment:
+ GOPROXY: off
TAGS: bindata sqlite sqlite_unlock_notify
- name: gpg-sign
@@ -481,6 +495,7 @@ steps:
- make generate
- make release
environment:
+ GOPROXY: off
TAGS: bindata sqlite sqlite_unlock_notify
- name: gpg-sign
@@ -607,6 +622,8 @@ steps:
dry_run: true
repo: gitea/gitea
tags: linux-amd64
+ build_args:
+ - GOPROXY=off
when:
event:
- pull_request
@@ -618,6 +635,8 @@ steps:
auto_tag: true
auto_tag_suffix: linux-amd64
repo: gitea/gitea
+ build_args:
+ - GOPROXY=off
password:
from_secret: docker_password
username:
@@ -668,6 +687,8 @@ steps:
dry_run: true
repo: gitea/gitea
tags: linux-arm64
+ build_args:
+ - GOPROXY=off
when:
event:
- pull_request
@@ -679,6 +700,8 @@ steps:
auto_tag: true
auto_tag_suffix: linux-arm64
repo: gitea/gitea
+ build_args:
+ - GOPROXY=off
password:
from_secret: docker_password
username: