combine make calls on drone (#9979)

* combine make calls on drone

combine most make calls on drone into one command. this should give a
speedup of about 5-15 seconds per make invocation because make only
needs to resolve file globs once.

* combine timeout calls as well
release/v1.15
silverwind 2020-01-25 17:42:38 +01:00 committed by zeripath
parent f1dd38b4f5
commit 15af6bec60
1 changed files with 8 additions and 21 deletions

View File

@ -15,8 +15,7 @@ steps:
pull: always pull: always
image: node:10 # this step is kept at the lowest version of node that we support image: node:10 # this step is kept at the lowest version of node that we support
commands: commands:
- make css - make css js
- make js
- name: build-without-gcc - name: build-without-gcc
pull: always pull: always
@ -42,12 +41,7 @@ steps:
pull: always pull: always
image: golang:1.13 image: golang:1.13
commands: commands:
- make clean - make clean golangci-lint revive swagger-check swagger-validate test-vendor
- make golangci-lint
- make revive
- make swagger-check
- make swagger-validate
- make test-vendor
environment: environment:
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
GOSUMDB: sum.golang.org GOSUMDB: sum.golang.org
@ -137,8 +131,7 @@ steps:
commands: commands:
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash" - "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
- apt-get install -y git-lfs - apt-get install -y git-lfs
- make test-mysql-migration - make test-mysql-migration integration-test-coverage
- make integration-test-coverage
environment: environment:
GOPROXY: off GOPROXY: off
TAGS: bindata TAGS: bindata
@ -152,8 +145,7 @@ steps:
commands: commands:
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash" - "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
- apt-get install -y git-lfs - apt-get install -y git-lfs
- timeout -s ABRT 20m make test-mysql8-migration - timeout -s ABRT 40m make test-mysql8-migration test-mysql8
- timeout -s ABRT 20m make test-mysql8
environment: environment:
GOPROXY: off GOPROXY: off
TAGS: bindata TAGS: bindata
@ -167,8 +159,7 @@ steps:
commands: commands:
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash" - "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
- apt-get install -y git-lfs - apt-get install -y git-lfs
- make test-mssql-migration - make test-mssql-migration test-mssql
- make test-mssql
environment: environment:
GOPROXY: off GOPROXY: off
TAGS: bindata TAGS: bindata
@ -265,8 +256,7 @@ steps:
commands: commands:
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash" - "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
- apt-get install -y git-lfs - apt-get install -y git-lfs
- timeout -s ABRT 20m make test-sqlite-migration - timeout -s ABRT 40m make test-sqlite-migration test-sqlite
- timeout -s ABRT 20m make test-sqlite
environment: environment:
GOPROXY: off GOPROXY: off
TAGS: bindata TAGS: bindata
@ -279,8 +269,7 @@ steps:
commands: commands:
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash" - "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
- apt-get install -y git-lfs - apt-get install -y git-lfs
- timeout -s ABRT 20m make test-pgsql-migration - timeout -s ABRT 40m make test-pgsql-migration test-pgsql
- timeout -s ABRT 20m make test-pgsql
environment: environment:
GOPROXY: off GOPROXY: off
TAGS: bindata TAGS: bindata
@ -548,9 +537,7 @@ steps:
commands: commands:
- apk add --no-cache make bash curl - apk add --no-cache make bash curl
- cd docs - cd docs
- make trans-copy - make trans-copy clean build
- make clean
- make build
- name: publish-docs - name: publish-docs
pull: always pull: always