Build: Speed up integration tests (#43045) (#43169)

Changes so that postgres/mysql services in Drone maps their data volumes
to tmpfs volumes (memory) to improve performance.

(cherry picked from commit 5bec46ce23)
This commit is contained in:
Marcus Efraimsson
2021-12-15 18:20:00 +01:00
committed by GitHub
parent 20222bada0
commit e7680a0d65
6 changed files with 136 additions and 3 deletions
+2 -1
View File
@@ -7,7 +7,7 @@ load(
load('scripts/drone/vault.star', 'from_secret', 'github_token', 'pull_secret', 'drone_token')
def pipeline(
name, edition, trigger, steps, services=[], platform='linux', depends_on=[],
name, edition, trigger, steps, services=[], platform='linux', depends_on=[], volumes=[],
):
if platform != 'windows':
platform_conf = {
@@ -48,6 +48,7 @@ def pipeline(
}],
'depends_on': depends_on,
}
pipeline['volumes'].extend(volumes)
pipeline.update(platform_conf)
if edition in ('enterprise', 'enterprise2'):