* Split suite1 to multiple e2e test suites * Update drone yaml * Add missing arg * Extract cypress install step * Change image on e2e tests step * Sync with main * Add cypress cache volume * Try with grafana/ci-e2e:12.19.0-1 image * Update grabpl version to 2.7.2 * Revert a11y failure back to 'always'
75 lines
1.8 KiB
Plaintext
75 lines
1.8 KiB
Plaintext
load(
|
|
'scripts/drone/steps/lib.star',
|
|
'download_grabpl_step',
|
|
'slack_step',
|
|
)
|
|
|
|
load('scripts/drone/vault.star', 'from_secret', 'github_token', 'pull_secret', 'drone_token')
|
|
|
|
def pipeline(
|
|
name, edition, trigger, steps, services=[], platform='linux', depends_on=[],
|
|
):
|
|
if platform != 'windows':
|
|
platform_conf = {
|
|
'platform': {
|
|
'os': 'linux',
|
|
'arch': 'amd64'
|
|
},
|
|
# A shared cache is used on the host
|
|
# To avoid issues with parallel builds, we run this repo on single build agents
|
|
'node': {
|
|
'type': 'no-parallel'
|
|
}
|
|
}
|
|
else:
|
|
platform_conf = {
|
|
'platform': {
|
|
'os': 'windows',
|
|
'arch': 'amd64',
|
|
'version': '1809',
|
|
}
|
|
}
|
|
|
|
pipeline = {
|
|
'kind': 'pipeline',
|
|
'type': 'docker',
|
|
'name': name,
|
|
'trigger': trigger,
|
|
'services': services,
|
|
'steps': steps,
|
|
'volumes': [{
|
|
'name': 'cypress_cache',
|
|
'temp': {},
|
|
}],
|
|
'depends_on': depends_on,
|
|
}
|
|
pipeline.update(platform_conf)
|
|
|
|
if edition in ('enterprise', 'enterprise2'):
|
|
pipeline['image_pull_secrets'] = [pull_secret]
|
|
# We have a custom clone step for enterprise
|
|
pipeline['clone'] = {
|
|
'disable': True,
|
|
}
|
|
|
|
return pipeline
|
|
|
|
def notify_pipeline(name, slack_channel, trigger, depends_on=[]):
|
|
trigger = dict(trigger, status = ['failure'])
|
|
return {
|
|
'kind': 'pipeline',
|
|
'type': 'docker',
|
|
'platform': {
|
|
'os': 'linux',
|
|
'arch': 'amd64',
|
|
},
|
|
'name': name,
|
|
'trigger': trigger,
|
|
'steps': [
|
|
slack_step(slack_channel),
|
|
],
|
|
'depends_on': depends_on,
|
|
}
|
|
|
|
|