forked from ak-fortuna/fortuna
77 lines
1.7 KiB
Plaintext
77 lines
1.7 KiB
Plaintext
# 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"
|
|
]
|
|
},
|
|
{
|
|
"name": "pull archlinux",
|
|
"image": "docker.io/archlinux:base-devel",
|
|
"pull": "always",
|
|
"depends_on": ["clone"],
|
|
"commands": [
|
|
"uname -r",
|
|
]
|
|
},
|
|
{
|
|
"name": "pull fedora-cpp",
|
|
"image": "docker.io/immawanderer/fedora-cpp:linux-amd64",
|
|
"pull": "always",
|
|
"depends_on": ["clone"],
|
|
"commands": [
|
|
"uname -r",
|
|
]
|
|
},
|
|
{
|
|
"name": "cppcheck",
|
|
"image": "docker.io/archlinux:base-devel",
|
|
"pull": "if-not-exists",
|
|
"depends_on": ["update submodules", "pull archlinux"],
|
|
"commands": [
|
|
"pacman -Sy cppcheck --noconfirm --needed",
|
|
"cppcheck --version",
|
|
"cppcheck --language=c++ --std=c++20 --enable=all --verbose ./*.{cpp,h}"
|
|
]
|
|
},
|
|
{
|
|
"name": "make debug",
|
|
"image": "docker.io/immawanderer/fedora-cpp:linux-amd64",
|
|
"pull": "if-not-exists",
|
|
"depends_on": ["cppcheck", "pull fedora-cpp"],
|
|
"commands": [
|
|
"make debug"
|
|
]
|
|
},
|
|
{
|
|
"name": "make release",
|
|
"image": "docker.io/immawanderer/fedora-cpp:linux-amd64",
|
|
"pull": "if-not-exists",
|
|
"depends_on": ["cppcheck", "pull fedora-cpp"],
|
|
"commands": [
|
|
"make release"
|
|
]
|
|
},
|
|
{
|
|
"name": "make san",
|
|
"image": "docker.io/immawanderer/fedora-cpp:linux-amd64",
|
|
"pull": "if-not-exists",
|
|
"depends_on": ["cppcheck", "pull fedora-cpp"],
|
|
"commands": [
|
|
"make san"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
|