fortuna/.drone.starlark

77 lines
1.7 KiB
Plaintext
Raw Permalink Normal View History

2021-10-20 02:55:47 +02:00
# vim: ft=bzl.starlark noexpandtab
def main(ctx):
return {
"kind": "pipeline",
"type": "docker",
"name": "testing",
"steps": [
{
"name": "update submodules",
"image": "alpine/git",
"pull": "always",
"depends_on": ["clone"],
"commands": [
"git --version",
"git submodule update --init --recursive"
]
},
2021-10-24 21:35:57 +02:00
{
2022-03-22 17:48:30 +01:00
"name": "pull archlinux",
2021-10-24 21:35:57 +02:00
"image": "docker.io/archlinux:base-devel",
"pull": "always",
2022-03-22 17:48:30 +01:00
"depends_on": ["clone"],
"commands": [
"uname -r",
]
},
{
"name": "pull fedora-cpp",
"image": "docker.io/immawanderer/fedora-cpp:linux-amd64",
"pull": "always",
"depends_on": ["clone"],
2021-10-24 21:35:57 +02:00
"commands": [
"uname -r",
2022-03-22 17:48:30 +01:00
]
},
{
"name": "cppcheck",
"image": "docker.io/archlinux:base-devel",
"pull": "if-not-exists",
"depends_on": ["update submodules", "pull archlinux"],
"commands": [
"pacman -Sy cppcheck --noconfirm --needed",
2021-10-24 21:35:57 +02:00
"cppcheck --version",
"cppcheck --language=c++ --std=c++20 --enable=all --verbose ./*.{cpp,h}"
2021-10-24 21:35:57 +02:00
]
},
2021-10-20 02:55:47 +02:00
{
"name": "make debug",
2021-10-20 02:55:47 +02:00
"image": "docker.io/immawanderer/fedora-cpp:linux-amd64",
2022-03-22 17:48:30 +01:00
"pull": "if-not-exists",
"depends_on": ["cppcheck", "pull fedora-cpp"],
2021-10-20 02:55:47 +02:00
"commands": [
"make debug"
2021-10-20 02:55:47 +02:00
]
},
{
"name": "make release",
2021-10-20 02:55:47 +02:00
"image": "docker.io/immawanderer/fedora-cpp:linux-amd64",
2022-03-22 17:48:30 +01:00
"pull": "if-not-exists",
"depends_on": ["cppcheck", "pull fedora-cpp"],
2021-10-20 02:55:47 +02:00
"commands": [
"make release"
2021-10-20 02:55:47 +02:00
]
},
2021-10-24 21:35:57 +02:00
{
"name": "make san",
"image": "docker.io/immawanderer/fedora-cpp:linux-amd64",
2022-03-22 17:48:30 +01:00
"pull": "if-not-exists",
"depends_on": ["cppcheck", "pull fedora-cpp"],
2021-10-24 21:35:57 +02:00
"commands": [
"make san"
2021-10-24 21:35:57 +02:00
]
2021-10-20 02:55:47 +02:00
}
]
}