From: Lucas De Marchi Date: Wed, 25 Feb 2015 15:45:02 +0000 (-0300) Subject: build: add helpers to upload coverity tarball X-Git-Tag: v20~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0bcdef97009a99fb9ef8426e3fef72b69f0dd156;p=thirdparty%2Fkmod.git build: add helpers to upload coverity tarball --- diff --git a/.gitignore b/.gitignore index f60cac62..58ef42a7 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ /config.status /configure /coverage +/cov-int /libtool /stamp-h1 /test-suite.log diff --git a/Makefile.am b/Makefile.am index b09c25f8..b74e190d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 # ------------------------------------------------------------------------------