This repository has been archived on 2022-02-10. You can view files and clone it, but cannot push or open issues or pull requests.
fortuna/.drone.starlark
surtur 02de37baa2
All checks were successful
continuous-integration/drone/push Build is passing
ci: rm 'build on alpine' step
building on alpine when using libc++ would probably be too much of a
hassle right now.
2022-01-10 05:02:44 +01:00

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"
]
}
]
}