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

* format drone starlark files with black * clean up unused params * more simplification * more cleanup * more cleanup
50 lines
926 B
Plaintext
50 lines
926 B
Plaintext
load('scripts/drone/steps/lib.star', 'build_image', 'compile_build_cmd')
|
|
|
|
load(
|
|
'scripts/drone/utils/utils.star',
|
|
'pipeline',
|
|
)
|
|
|
|
trigger = {
|
|
'event': [
|
|
'pull_request',
|
|
],
|
|
'paths': {
|
|
'exclude': [
|
|
'*.md',
|
|
'docs/**',
|
|
'latest.json',
|
|
],
|
|
'include': ['scripts/**/*.sh'],
|
|
},
|
|
}
|
|
|
|
|
|
def shellcheck_step():
|
|
return {
|
|
'name': 'shellcheck',
|
|
'image': build_image,
|
|
'depends_on': [
|
|
'compile-build-cmd',
|
|
],
|
|
'commands': [
|
|
'./bin/build shellcheck',
|
|
],
|
|
}
|
|
|
|
|
|
def shellcheck_pipeline():
|
|
environment = {'EDITION': 'oss'}
|
|
steps = [
|
|
compile_build_cmd(),
|
|
shellcheck_step(),
|
|
]
|
|
return pipeline(
|
|
name='pr-shellcheck',
|
|
edition="oss",
|
|
trigger=trigger,
|
|
services=[],
|
|
steps=steps,
|
|
environment=environment,
|
|
)
|