mirror of
https://github.com/grafana/grafana.git
synced 2024-12-28 18:01:40 -06:00
e87646eeb6
* add very basic tests to verify storybook builds correctly
* add storybook step to drone
* reorder steps
* drone tweaks
* don't need host since it's set in env
* don't need to wait
* format build.star and readd wait
* install netcat in CI
* do a yarn install here to get correct bindings
* refactoring to hopefully work better in CI
* add wait-on
* add verbose logging
* localhost?
* more logging
* specify storybook host
* ...
* back to grafana-server
* does this work? 🤔
* run storybook e2e test after rgm-package so the backround process is running for less time
* split into separate step
* format
99 lines
2.3 KiB
Plaintext
99 lines
2.3 KiB
Plaintext
"""
|
|
This module returns all the pipelines used in the event of pushes to the main branch.
|
|
"""
|
|
|
|
load(
|
|
"scripts/drone/pipelines/build.star",
|
|
"build_e2e",
|
|
)
|
|
load(
|
|
"scripts/drone/pipelines/docs.star",
|
|
"docs_pipelines",
|
|
"trigger_docs_main",
|
|
)
|
|
load(
|
|
"scripts/drone/pipelines/integration_tests.star",
|
|
"integration_tests",
|
|
)
|
|
load(
|
|
"scripts/drone/pipelines/lint_backend.star",
|
|
"lint_backend_pipeline",
|
|
)
|
|
load(
|
|
"scripts/drone/pipelines/lint_frontend.star",
|
|
"lint_frontend_pipeline",
|
|
)
|
|
load(
|
|
"scripts/drone/pipelines/test_backend.star",
|
|
"test_backend",
|
|
)
|
|
load(
|
|
"scripts/drone/pipelines/test_frontend.star",
|
|
"test_frontend",
|
|
)
|
|
load(
|
|
"scripts/drone/pipelines/trigger_downstream.star",
|
|
"enterprise_downstream_pipeline",
|
|
)
|
|
load(
|
|
"scripts/drone/pipelines/verify_storybook.star",
|
|
"verify_storybook",
|
|
)
|
|
load(
|
|
"scripts/drone/pipelines/windows.star",
|
|
"windows",
|
|
)
|
|
load(
|
|
"scripts/drone/utils/utils.star",
|
|
"failure_template",
|
|
"notify_pipeline",
|
|
)
|
|
|
|
ver_mode = "main"
|
|
trigger = {
|
|
"event": [
|
|
"push",
|
|
],
|
|
"branch": "main",
|
|
"paths": {
|
|
"exclude": [
|
|
"*.md",
|
|
"docs/**",
|
|
"latest.json",
|
|
],
|
|
},
|
|
"repo": [
|
|
"grafana/grafana",
|
|
],
|
|
}
|
|
|
|
def main_pipelines():
|
|
pipelines = [
|
|
docs_pipelines(ver_mode, trigger_docs_main()),
|
|
test_frontend(trigger, ver_mode),
|
|
lint_frontend_pipeline(trigger, ver_mode),
|
|
test_backend(trigger, ver_mode),
|
|
lint_backend_pipeline(trigger, ver_mode),
|
|
verify_storybook(trigger, ver_mode),
|
|
build_e2e(trigger, ver_mode),
|
|
integration_tests(trigger, prefix = ver_mode, ver_mode = ver_mode),
|
|
windows(trigger, ver_mode = ver_mode),
|
|
enterprise_downstream_pipeline(),
|
|
notify_pipeline(
|
|
name = "main-notify",
|
|
slack_channel = "grafana-ci-notifications",
|
|
trigger = dict(trigger, status = ["failure"]),
|
|
depends_on = [
|
|
"main-test-frontend",
|
|
"main-test-backend",
|
|
"main-build-e2e-publish",
|
|
"main-integration-tests",
|
|
"main-windows",
|
|
],
|
|
template = failure_template,
|
|
secret = "slack_webhook",
|
|
),
|
|
]
|
|
|
|
return pipelines
|