ci: Add clang-analyzer.sh
There are really no excuses for any C/C++ project not to use both ASAN+UBSAN and static analysis in CI.
This commit is contained in:
parent
47c60eb6ce
commit
6dd12a8175
10
ci/clang-analyzer.sh
Executable file
10
ci/clang-analyzer.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/bash
|
||||
# Use the clang static analyzer
|
||||
|
||||
set -xeuo pipefail
|
||||
|
||||
dn=$(dirname $0)
|
||||
. ${dn}/libbuild.sh
|
||||
env NOCONFIGURE=1 ./autogen.sh
|
||||
scan-build ./configure --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc
|
||||
scan-build ${ARTIFACT_DIR:+-o ${ARTIFACT_DIR}} make
|
Loading…
Reference in New Issue
Block a user