0cf8f9fab6
* CI: Split release test pipelines (#56655) * Split test release pipelines * Add missing dependencies * Add release branch case when naming pipeline (cherry picked from commit75c5845749) * Add clone-enterprise and init-enterprise steps (#56662) (cherry picked from commiteb077db2b0) * Add dependencies (#56666) (cherry picked from commit811f6054c8) * Fix release test pipelines dependencies (#56671) (cherry picked from commit668cb25b82) * Remove build-frontend-packages step from docs pipelines (#56686) (cherry picked from commitefc8f985cb) * Remove grabpl dependency from yarn-install (#56692) * Sign drone
37 lines
1.1 KiB
Python
37 lines
1.1 KiB
Python
load(
|
|
'scripts/drone/steps/lib.star',
|
|
'identify_runner_step',
|
|
'clone_enterprise_step',
|
|
'init_enterprise_step',
|
|
'download_grabpl_step',
|
|
'yarn_install_step',
|
|
'betterer_frontend_step',
|
|
'test_frontend_step',
|
|
)
|
|
|
|
load(
|
|
'scripts/drone/utils/utils.star',
|
|
'pipeline',
|
|
)
|
|
|
|
def test_frontend(trigger, ver_mode, edition="oss"):
|
|
environment = {'EDITION': edition}
|
|
init_steps = []
|
|
if edition != 'oss':
|
|
init_steps.extend([clone_enterprise_step(ver_mode), init_enterprise_step(ver_mode),])
|
|
init_steps.extend([
|
|
identify_runner_step(),
|
|
download_grabpl_step(),
|
|
yarn_install_step(edition),
|
|
])
|
|
test_steps = [
|
|
betterer_frontend_step(edition),
|
|
test_frontend_step(edition),
|
|
]
|
|
pipeline_name = '{}-test-frontend'.format(ver_mode)
|
|
if ver_mode in ("release-branch", "release"):
|
|
pipeline_name = '{}-{}-test-frontend'.format(ver_mode, edition)
|
|
return pipeline(
|
|
name=pipeline_name, edition=edition, trigger=trigger, services=[], steps=init_steps + test_steps,
|
|
)
|