Remove dependencies on build step to speed up test pipeline (#521)
Make all steps depend on fetch tags to let them execute in parallel Cleanup Remove dependency from the build step everywhere Add generation step for tests Remove dependencies on build step to speed up test pipeline Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/api/pulls/521
This commit is contained in:
parent
4533ac6b28
commit
28a5c1f7b2
1 changed files with 16 additions and 8 deletions
24
.drone1.yml
24
.drone1.yml
|
@ -67,8 +67,9 @@ steps:
|
||||||
image: vikunja/golang-build:latest
|
image: vikunja/golang-build:latest
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
|
- make generate
|
||||||
- make test
|
- make test
|
||||||
depends_on: [ build ]
|
depends_on: [ fetch-tags ]
|
||||||
when:
|
when:
|
||||||
event: [ push, tag, pull_request ]
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
|
@ -79,8 +80,9 @@ steps:
|
||||||
VIKUNJA_TESTS_USE_CONFIG: 1
|
VIKUNJA_TESTS_USE_CONFIG: 1
|
||||||
VIKUNJA_DATABASE_TYPE: sqlite
|
VIKUNJA_DATABASE_TYPE: sqlite
|
||||||
commands:
|
commands:
|
||||||
|
- make generate
|
||||||
- make test
|
- make test
|
||||||
depends_on: [ build ]
|
depends_on: [ fetch-tags ]
|
||||||
when:
|
when:
|
||||||
event: [ push, tag, pull_request ]
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
|
@ -95,8 +97,9 @@ steps:
|
||||||
VIKUNJA_DATABASE_PASSWORD: vikunjatest
|
VIKUNJA_DATABASE_PASSWORD: vikunjatest
|
||||||
VIKUNJA_DATABASE_DATABASE: vikunjatest
|
VIKUNJA_DATABASE_DATABASE: vikunjatest
|
||||||
commands:
|
commands:
|
||||||
|
- make generate
|
||||||
- make test
|
- make test
|
||||||
depends_on: [ build ]
|
depends_on: [ fetch-tags ]
|
||||||
when:
|
when:
|
||||||
event: [ push, tag, pull_request ]
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
|
@ -112,8 +115,9 @@ steps:
|
||||||
VIKUNJA_DATABASE_DATABASE: vikunjatest
|
VIKUNJA_DATABASE_DATABASE: vikunjatest
|
||||||
VIKUNJA_DATABASE_SSLMODE: disable
|
VIKUNJA_DATABASE_SSLMODE: disable
|
||||||
commands:
|
commands:
|
||||||
|
- make generate
|
||||||
- make test
|
- make test
|
||||||
depends_on: [ build ]
|
depends_on: [ fetch-tags ]
|
||||||
when:
|
when:
|
||||||
event: [ push, tag, pull_request ]
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
|
@ -121,8 +125,9 @@ steps:
|
||||||
image: vikunja/golang-build:latest
|
image: vikunja/golang-build:latest
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
|
- make generate
|
||||||
- make integration-test
|
- make integration-test
|
||||||
depends_on: [ build ]
|
depends_on: [ fetch-tags ]
|
||||||
when:
|
when:
|
||||||
event: [ push, tag, pull_request ]
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
|
@ -133,8 +138,9 @@ steps:
|
||||||
VIKUNJA_TESTS_USE_CONFIG: 1
|
VIKUNJA_TESTS_USE_CONFIG: 1
|
||||||
VIKUNJA_DATABASE_TYPE: sqlite
|
VIKUNJA_DATABASE_TYPE: sqlite
|
||||||
commands:
|
commands:
|
||||||
|
- make generate
|
||||||
- make integration-test
|
- make integration-test
|
||||||
depends_on: [ build ]
|
depends_on: [ fetch-tags ]
|
||||||
when:
|
when:
|
||||||
event: [ push, tag, pull_request ]
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
|
@ -149,8 +155,9 @@ steps:
|
||||||
VIKUNJA_DATABASE_PASSWORD: vikunjatest
|
VIKUNJA_DATABASE_PASSWORD: vikunjatest
|
||||||
VIKUNJA_DATABASE_DATABASE: vikunjatest
|
VIKUNJA_DATABASE_DATABASE: vikunjatest
|
||||||
commands:
|
commands:
|
||||||
|
- make generate
|
||||||
- make integration-test
|
- make integration-test
|
||||||
depends_on: [ build ]
|
depends_on: [ fetch-tags ]
|
||||||
when:
|
when:
|
||||||
event: [ push, tag, pull_request ]
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
|
@ -166,8 +173,9 @@ steps:
|
||||||
VIKUNJA_DATABASE_DATABASE: vikunjatest
|
VIKUNJA_DATABASE_DATABASE: vikunjatest
|
||||||
VIKUNJA_DATABASE_SSLMODE: disable
|
VIKUNJA_DATABASE_SSLMODE: disable
|
||||||
commands:
|
commands:
|
||||||
|
- make generate
|
||||||
- make integration-test
|
- make integration-test
|
||||||
depends_on: [ build ]
|
depends_on: [ fetch-tags ]
|
||||||
when:
|
when:
|
||||||
event: [ push, tag, pull_request ]
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue