]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
build: add helpers to upload coverity tarball
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 25 Feb 2015 15:45:02 +0000 (12:45 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 25 Feb 2015 15:57:31 +0000 (12:57 -0300)
.gitignore
Makefile.am

index f60cac629788aae24fc5fed7de305b9ca756aab1..58ef42a752b87c23d123480a21a50c614eb39a38 100644 (file)
@@ -17,6 +17,7 @@
 /config.status
 /configure
 /coverage
+/cov-int
 /libtool
 /stamp-h1
 /test-suite.log
index b09c25f86936960b278962834def21aa4b1819c7..b74e190d559faee994471618409d3b6b32eca382 100644 (file)
@@ -410,6 +410,31 @@ lcov-run lcov-report:
 
 endif
 
+# ------------------------------------------------------------------------------
+# coverity
+# ------------------------------------------------------------------------------
+
+kmod-coverity-%.tar.xz:
+       rm -rf $< cov-int
+       ./bootstrap-configure --disable-python --disable-manpages
+       make clean
+       cov-build --dir cov-int make -j 4
+       tar caf $@ cov-int
+
+coverity-tar: kmod-coverity-$(shell git describe).tar.xz
+
+coverity-sync: kmod-coverity-$(shell git describe).tar.xz
+       @echo "uploading coverity tarball"
+       @curl --form token=$(COVERITY_KMOD_TOKEN) \
+               --form email=lucas.de.marchi@gmail.com \
+               --form file=@$< \
+               --form version="$(shell git describe)" \
+               --form description="" \
+               https://scan.coverity.com/builds?project=kmod
+
+coverity-clean:
+       rm -rf kmod-coverity-*.tar.xz cov-int
+
 # ------------------------------------------------------------------------------
 # custom release helpers
 # ------------------------------------------------------------------------------