]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Makefile: update coverity rules
authorSage Weil <sage.weil@dreamhost.com>
Fri, 24 Aug 2012 21:54:51 +0000 (14:54 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Fri, 24 Aug 2012 21:55:40 +0000 (14:55 -0700)
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/Makefile.am

index 6cf656603eed25b38f0ca83add95c6d3c157f372..6deed9580033cf47f138b30c413b6f15e40cf5f7 100644 (file)
@@ -1736,12 +1736,20 @@ if WITH_DEBUG
 bin_PROGRAMS += $(bin_DEBUGPROGRAMS)
 endif
 
+
+#
+# coverity rules expect:
+#  - cov-build to be in the path
+#  - password in ~/coverity.build.pass.txt
+#  - ability to scp into the ceph.com directory
+#
 project.tgz: clean
-       cov-configure -co /usr/bin/gcc
-       cov-configure -co /usr/bin/g++
-       cov-build -e emit -o output make
-       tar czvf project.tgz README emit output
-
-submit-coverity:
-       scp project.tgz ceph.newdream.net:ceph.com/coverity/`git describe`.tgz
-       echo "v2;ceph;"`cat .coverity.build.pass`";MAIL;http://ceph.com/coverity/"`git describe`.tgz | mail build@submit.scan.coverity.com
+       rm -rf cov-int
+       cov-build --dir cov-int make
+       echo Sage Weil sage@newdream.net ceph >> README
+       tar czvf project.tgz README cov-int
+       rm -f README
+
+coverity-submit:
+       scp project.tgz ceph.com:/home/ceph_site/ceph.com/coverity/`git describe`.tgz
+       curl --data "project=ceph&password=`cat ~/coverity.build.pass.txt`&email=sage@newdream.net&url=http://ceph.com/coverity/`git describe`.tgz" http://scan5.coverity.com/cgi-bin/submit_build.py