Improve the coverity usage

This commit is contained in:
Sylvestre Ledru 2013-09-30 13:19:03 +00:00
parent 08da742eed
commit bc3c828166

11
debian/rules vendored
View File

@ -82,7 +82,8 @@ ifneq (,$(filter coverity,$(DEB_BUILD_OPTIONS)))
# pbuilder contains BINDMOUNTS="/opt/cov-analysis/" # pbuilder contains BINDMOUNTS="/opt/cov-analysis/"
# And we have some pbuilder hooks to configure and pack the result # And we have some pbuilder hooks to configure and pack the result
# Where the binaries are installed on the jenkins instance # Where the binaries are installed on the jenkins instance
PRE_PROCESS=/opt/cov-analysis/bin/cov-build --dir cov-int PRE_PROCESS=PATH=/opt/cov-analysis/bin/ cov-build --dir cov-int
COVERITY_ENABLE=1
# no need to run tests in this case # no need to run tests in this case
DEB_BUILD_OPTIONS+=" nocheck" DEB_BUILD_OPTIONS+=" nocheck"
endif endif
@ -129,6 +130,14 @@ override_dh_auto_configure: debian/lldb-$(LLVM_VERSION).install debian/lldb-$(LL
ln -s ../compiler-rt .; \ ln -s ../compiler-rt .; \
readlink compiler-rt readlink compiler-rt
# Configure coverity (we need the compilers)
if test "$COVERITY_ENABLE" -eq "1"; then \
export PATH=$$PATH:/opt/cov-analysis/bin; \
cov-configure --compiler clang --comptype gcc; \
cov-configure --compiler gcc-4.8 --comptype gcc; \
cov-configure --compiler g++-4.8 --comptype gcc; \
fi
# Due to bug upstream, no symlink here # Due to bug upstream, no symlink here
cp -R -H clang-tools-extra tools/clang/tools/extra cp -R -H clang-tools-extra tools/clang/tools/extra
# Start the actual configure # Start the actual configure