* Add docs.star
* Fixes in drone yaml
* Add grabpl
* Remove unnecessary steps
(cherry picked from commit f2e03cdb107eb283416885a73051c1ff86eb8b7f)
* Rename docs pipeline
* Exclude docs related steps from PR pipelines
* Add packages/** trigger
* Remove packages exclusion from pr pipelines
(cherry picked from commit 434697e0fd)
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
load(
|
||||
'scripts/drone/steps/lib.star',
|
||||
'initialize_step',
|
||||
'download_grabpl_step',
|
||||
'lint_frontend_step',
|
||||
'codespell_step',
|
||||
'shellcheck_step',
|
||||
'build_frontend_step',
|
||||
'test_frontend_step',
|
||||
'build_storybook_step',
|
||||
'build_frontend_docs_step',
|
||||
'build_docs_website_step',
|
||||
)
|
||||
|
||||
load(
|
||||
'scripts/drone/services/services.star',
|
||||
'integration_test_services',
|
||||
'ldap_service',
|
||||
)
|
||||
|
||||
load(
|
||||
'scripts/drone/utils/utils.star',
|
||||
'pipeline',
|
||||
)
|
||||
|
||||
ver_mode = 'pr'
|
||||
|
||||
def docs_pipelines(edition):
|
||||
steps = [download_grabpl_step()] + initialize_step(edition, platform='linux', ver_mode=ver_mode)
|
||||
steps.extend([
|
||||
build_frontend_step(edition=edition, ver_mode=ver_mode),
|
||||
])
|
||||
|
||||
# Insert remaining steps
|
||||
steps.extend([
|
||||
build_frontend_docs_step(edition=edition),
|
||||
build_docs_website_step(),
|
||||
])
|
||||
|
||||
trigger = {
|
||||
'event': [
|
||||
'pull_request',
|
||||
],
|
||||
'paths': {
|
||||
'include': [
|
||||
'docs/**',
|
||||
'packages/**',
|
||||
],
|
||||
},
|
||||
}
|
||||
return [
|
||||
pipeline(
|
||||
name='pr-docs', edition=edition, trigger=trigger, services=[], steps=steps,
|
||||
),
|
||||
]
|
||||
@@ -18,8 +18,6 @@ load(
|
||||
'e2e_tests_step',
|
||||
'e2e_tests_artifacts',
|
||||
'build_storybook_step',
|
||||
'build_frontend_docs_step',
|
||||
'build_docs_website_step',
|
||||
'copy_packages_for_docker_step',
|
||||
'build_docker_images_step',
|
||||
'postgres_integration_tests_step',
|
||||
@@ -100,8 +98,6 @@ def pr_pipelines(edition):
|
||||
e2e_tests_artifacts(edition=edition),
|
||||
build_storybook_step(edition=edition, ver_mode=ver_mode),
|
||||
test_a11y_frontend_step(ver_mode=ver_mode, edition=edition),
|
||||
build_frontend_docs_step(edition=edition),
|
||||
build_docs_website_step(),
|
||||
copy_packages_for_docker_step(),
|
||||
build_docker_images_step(edition=edition, ver_mode=ver_mode, archs=['amd64',]),
|
||||
])
|
||||
@@ -116,7 +112,14 @@ def pr_pipelines(edition):
|
||||
])
|
||||
|
||||
trigger = {
|
||||
'event': ['pull_request',],
|
||||
'event': [
|
||||
'pull_request',
|
||||
],
|
||||
'paths': {
|
||||
'exclude': [
|
||||
'docs/**',
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user