rpm-ostree/ci/clang-analyzer.sh
Colin Walters c48e8bfad3 ci: Rework build/test dependency install
Now that `ci/installdeps.sh` gracefully exits if run as non-root,
we can fold the cargo bits into the our build scripts and avoid
invoking both of them.

However, now we need to split test deps to separate file because
we won't have `cargo` in the main cosa pod.  This also fixes a FIXME.

Steal the `grep` invocation from cosa and make it a declarative
text file so we can have comments per package etc.
2021-02-16 18:18:27 -05:00

12 lines
285 B
Bash
Executable File

#!/usr/bin/bash
# Use the clang static analyzer
set -xeuo pipefail
dn=$(dirname $0)
. ${dn}/libbuild.sh
${dn}/installdeps.sh
env NOCONFIGURE=1 ./autogen.sh
scan-build ./configure --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc
scan-build ${ARTIFACT_DIR:+-o ${ARTIFACT_DIR}} make