Build: Speed up integration tests (#43045)

Changes so that postgres/mysql services in Drone maps their data volumes 
to tmpfs volumes (memory) to improve performance.
This commit is contained in:
Marcus Efraimsson
2021-12-15 13:48:59 +01:00
committed by GitHub
parent 6724c42e84
commit 5bec46ce23
6 changed files with 136 additions and 3 deletions
+2 -1
View File
@@ -10,7 +10,7 @@ failure_template = 'Build {{build.number}} failed for commit: <https://github.co
drone_change_template = '`.drone.yml` and `starlark` files have been changed on the OSS repo, by: {{build.author}}. \nBranch: <https://github.com/{{ repo.owner }}/{{ repo.name }}/commits/{{ build.branch }}|{{ build.branch }}>\nCommit hash: <https://github.com/{{repo.owner}}/{{repo.name}}/commit/{{build.commit}}|{{ truncate build.commit 8 }}>'
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 = {
@@ -51,6 +51,7 @@ def pipeline(
}],
'depends_on': depends_on,
}
pipeline['volumes'].extend(volumes)
pipeline.update(platform_conf)
if edition in ('enterprise', 'enterprise2'):