surtur
02de37baa2
All checks were successful
continuous-integration/drone/push Build is passing
building on alpine when using libc++ would probably be too much of a hassle right now.
63 lines
1.3 KiB
Plaintext
63 lines
1.3 KiB
Plaintext
# vim: ft=bzl.starlark noexpandtab
|
|
def main(ctx):
|
|
return {
|
|
"kind": "pipeline",
|
|
"type": "docker",
|
|
"name": "testing",
|
|
"steps": [
|
|
{
|
|
"name": "update submodules",
|
|
"image": "docker.io/immawanderer/fedora-cpp:linux-amd64",
|
|
"pull": "always",
|
|
"depends_on": ["clone"],
|
|
"commands": [
|
|
"uname -r",
|
|
"git submodule update --init --recursive"
|
|
]
|
|
},
|
|
{
|
|
"name": "cppcheck",
|
|
"image": "docker.io/archlinux:base-devel",
|
|
"pull": "always",
|
|
"depends_on": ["update submodules"],
|
|
"commands": [
|
|
"pacman -Sy cppcheck --noconfirm --needed",
|
|
"uname -r",
|
|
"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": "always",
|
|
"depends_on": ["cppcheck"],
|
|
"commands": [
|
|
"uname -r",
|
|
"make debug"
|
|
]
|
|
},
|
|
{
|
|
"name": "make release",
|
|
"image": "docker.io/immawanderer/fedora-cpp:linux-amd64",
|
|
"pull": "always",
|
|
"depends_on": ["cppcheck"],
|
|
"commands": [
|
|
"uname -r",
|
|
"make release"
|
|
]
|
|
},
|
|
{
|
|
"name": "make san",
|
|
"image": "docker.io/immawanderer/fedora-cpp:linux-amd64",
|
|
"pull": "always",
|
|
"depends_on": ["cppcheck"],
|
|
"commands": [
|
|
"uname -r",
|
|
"make san"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
|