Add coverity target to build coverity analysis and upload to coverity server for online analysis

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13890 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2012-11-14 22:51:39 +00:00
commit 51a1aa5b1a

View file

@ -523,4 +523,18 @@ $(srcdir)/configure: $(srcdir)/configure.in
cd $(srcdir) && ./autogen.sh
$(SHELL) ./config.status --recheck
############################################################################
# Tools
############################################################################
# Coverity static code analyser build and submit - EMAIL and PASSWORD need specifying
# See http://scan.coverity.com/start/
EMAIL=wsf@fultondesigns.co.uk
PASSWORD=
coverity:
$(MAKE) clean-source
cov-build --dir cov-int $(MAKE)
tar czvf swig-coverity.tgz cov-int
curl --form file=@swig-coverity.tgz --form project=swig --form password=$(PASSWORD) --form email=$(EMAIL) http://scan5.coverity.com/cgi-bin/upload.py
# Makefile ends here