CI: Make build, test and integration tests steps run in parallel (#40794)

* Make build and test steps run in parallel

* Make tests and builds run on different pipelines

* Make test-backend depend on initialize

* Rename

* Create standalone integration tests pipeline (#41730)

* Remove unused variables
This commit is contained in:
Dimitris Sotirakis
2021-11-17 11:25:55 +02:00
committed by GitHub
parent 818b8739c0
commit b8dd9fdd4a
6 changed files with 292 additions and 186 deletions
+3 -9
View File
@@ -1,18 +1,15 @@
load(
'scripts/drone/steps/lib.star',
'initialize_step',
'download_grabpl',
'download_grabpl_step',
'slack_step',
)
load('scripts/drone/vault.star', 'from_secret', 'github_token', 'pull_secret', 'drone_token')
def pipeline(
name, edition, trigger, steps, ver_mode, services=[], platform='linux', depends_on=[],
is_downstream=False, install_deps=True,
name, edition, trigger, steps, services=[], platform='linux', depends_on=[],
):
if platform != 'windows':
grabpl_step = [download_grabpl()]
platform_conf = {
'platform': {
'os': 'linux',
@@ -25,7 +22,6 @@ def pipeline(
}
}
else:
grabpl_step = []
platform_conf = {
'platform': {
'os': 'windows',
@@ -40,9 +36,7 @@ def pipeline(
'name': name,
'trigger': trigger,
'services': services,
'steps': grabpl_step + initialize_step(
edition, platform, is_downstream=is_downstream, install_deps=install_deps, ver_mode=ver_mode,
) + steps,
'steps': steps,
'depends_on': depends_on,
}
pipeline.update(platform_conf)