diff --git a/.drone.yml b/.drone.yml index 955008e3b4a49..abc321f44207e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -333,21 +333,6 @@ steps: commands: - ./build/test-env-prepare.sh - - name: build - image: gitea/test_env:linux-1.20-amd64 # https://gitea.com/gitea/test-env - user: gitea - commands: - - ./build/test-env-check.sh - - make backend - environment: - GOPROXY: https://goproxy.io # proxy.golang.org is blocked in China, this proxy is not - GOSUMDB: sum.golang.org - TAGS: bindata - depends_on: [deps-backend, prepare-test-env] - volumes: - - name: deps - path: /go - - name: unit-test image: gitea/test_env:linux-1.20-amd64 # https://gitea.com/gitea/test-env user: gitea @@ -384,14 +369,13 @@ steps: image: gitea/test_env:linux-1.20-amd64 # https://gitea.com/gitea/test-env user: gitea commands: - - make test-mysql-migration integration-test-coverage + - make generate test-mysql-migration integration-test-coverage environment: GOPROXY: https://goproxy.io TAGS: bindata RACE_ENABLED: true USE_REPO_TEST_DIR: 1 TEST_INDEXER_CODE_ES_URL: "http://elastic:changeme@elasticsearch:9200" - depends_on: [build] volumes: - name: deps path: /go @@ -484,31 +468,15 @@ steps: commands: - ./build/test-env-prepare.sh - - name: build - image: gitea/test_env:linux-1.20-amd64 # https://gitea.com/gitea/test-env - user: gitea - commands: - - ./build/test-env-check.sh - - make backend - environment: - GOPROXY: https://goproxy.io # proxy.golang.org is blocked in China, this proxy is not - GOSUMDB: sum.golang.org - TAGS: bindata - depends_on: [deps-backend, prepare-test-env] - volumes: - - name: deps - path: /go - - name: test-mysql8 image: gitea/test_env:linux-1.20-amd64 # https://gitea.com/gitea/test-env user: gitea commands: - - timeout -s ABRT 50m make test-mysql8-migration test-mysql8 + - timeout -s ABRT 50m make generate test-mysql8-migration test-mysql8 environment: GOPROXY: https://goproxy.io TAGS: bindata USE_REPO_TEST_DIR: 1 - depends_on: [build] volumes: - name: deps path: /go @@ -571,31 +539,15 @@ steps: commands: - ./build/test-env-prepare.sh - - name: build - image: gitea/test_env:linux-1.20-amd64 # https://gitea.com/gitea/test-env - user: gitea - commands: - - ./build/test-env-check.sh - - make backend - environment: - GOPROXY: https://goproxy.io # proxy.golang.org is blocked in China, this proxy is not - GOSUMDB: sum.golang.org - TAGS: bindata - depends_on: [deps-backend, prepare-test-env] - volumes: - - name: deps - path: /go - - name: test-mssql image: gitea/test_env:linux-1.20-amd64 # https://gitea.com/gitea/test-env user: gitea commands: - - make test-mssql-migration test-mssql + - make generate test-mssql-migration test-mssql environment: GOPROXY: https://goproxy.io TAGS: bindata USE_REPO_TEST_DIR: 1 - depends_on: [build] volumes: - name: deps path: /go