ci: use makefile targets
All checks were successful
continuous-integration/drone/push Build is passing

* re-use what has already been defined and tested locally
* verify that the makefile is functional in one fell swoop
This commit is contained in:
surtur 2021-11-02 04:00:41 +01:00
parent 639d941461
commit 5f8f8ca67e
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -24,9 +24,7 @@ def main(ctx):
"depends_on": ["cppcheck"],
"commands": [
"uname -r",
"mkdir -pv debug",
"cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -B debug",
"ninja -C debug"
"make debug"
]
},
{
@ -36,9 +34,7 @@ def main(ctx):
"depends_on": ["cppcheck"],
"commands": [
"uname -r",
"mkdir -pv release",
"cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -B release",
"ninja -C release"
"make release"
]
},
{
@ -64,7 +60,7 @@ def main(ctx):
"uname -r",
"pacman -Sy valgrind --noconfirm --needed",
"valgrind --version",
"valgrind ./debug/fortuna"
"make valgrind"
]
},
{
@ -76,7 +72,7 @@ def main(ctx):
"uname -r",
"pacman -Sy valgrind --noconfirm --needed",
"valgrind --version",
"valgrind ./release/fortuna"
"make valgrind-release"
]
}
]