mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 09:03:11 +08:00

* format drone starlark files with black * clean up unused params * more simplification * more cleanup * more cleanup
55 lines
1.2 KiB
Plaintext
55 lines
1.2 KiB
Plaintext
load(
|
|
'scripts/drone/steps/lib.star',
|
|
'compile_build_cmd',
|
|
'download_grabpl_step',
|
|
'identify_runner_step',
|
|
'verify_gen_cue_step',
|
|
'verify_gen_jsonnet_step',
|
|
'wire_install_step',
|
|
'postgres_integration_tests_step',
|
|
'mysql_integration_tests_step',
|
|
)
|
|
|
|
load(
|
|
'scripts/drone/services/services.star',
|
|
'integration_test_services',
|
|
'integration_test_services_volumes',
|
|
'ldap_service',
|
|
)
|
|
|
|
load(
|
|
'scripts/drone/utils/utils.star',
|
|
'pipeline',
|
|
)
|
|
|
|
|
|
def integration_tests(trigger, prefix):
|
|
environment = {'EDITION': 'oss'}
|
|
|
|
services = integration_test_services(edition="oss")
|
|
volumes = integration_test_services_volumes()
|
|
|
|
init_steps = [
|
|
download_grabpl_step(),
|
|
compile_build_cmd(),
|
|
identify_runner_step(),
|
|
verify_gen_cue_step(),
|
|
verify_gen_jsonnet_step(),
|
|
wire_install_step(),
|
|
]
|
|
|
|
test_steps = [
|
|
postgres_integration_tests_step(),
|
|
mysql_integration_tests_step(),
|
|
]
|
|
|
|
return pipeline(
|
|
name='{}-integration-tests'.format(prefix),
|
|
edition='oss',
|
|
trigger=trigger,
|
|
environment=environment,
|
|
services=services,
|
|
volumes=volumes,
|
|
steps=init_steps + test_steps,
|
|
)
|