2022-07-20 21:43:19 +08:00
|
|
|
load(
|
|
|
|
'scripts/drone/steps/lib.star',
|
|
|
|
'identify_runner_step',
|
|
|
|
'wire_install_step',
|
|
|
|
'test_backend_step',
|
|
|
|
'test_backend_integration_step',
|
|
|
|
'verify_gen_cue_step',
|
2022-07-28 22:11:22 +08:00
|
|
|
'compile_build_cmd',
|
2022-07-20 21:43:19 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
load(
|
|
|
|
'scripts/drone/utils/utils.star',
|
|
|
|
'pipeline',
|
|
|
|
)
|
|
|
|
|
|
|
|
def test_backend(trigger, ver_mode):
|
|
|
|
init_steps = [
|
|
|
|
identify_runner_step(),
|
2022-07-28 22:11:22 +08:00
|
|
|
compile_build_cmd(),
|
2022-07-20 21:43:19 +08:00
|
|
|
verify_gen_cue_step(edition="oss"),
|
|
|
|
wire_install_step(),
|
|
|
|
]
|
|
|
|
test_steps = [
|
|
|
|
test_backend_step(edition="oss"),
|
|
|
|
test_backend_integration_step(edition="oss"),
|
|
|
|
]
|
|
|
|
|
|
|
|
return pipeline(
|
|
|
|
name='{}-test-backend'.format(ver_mode), edition="oss", trigger=trigger, services=[], steps=init_steps + test_steps,
|
|
|
|
)
|