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:
@@ -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'):
|
||||
|
||||
Reference in New Issue
Block a user