build: add helpers to upload coverity tarball

This commit is contained in:
Lucas De Marchi 2015-02-25 12:45:02 -03:00
parent a07ea0329c
commit 0bcdef9700
2 changed files with 26 additions and 0 deletions

1
.gitignore vendored
View File

@ -17,6 +17,7 @@
/config.status
/configure
/coverage
/cov-int
/libtool
/stamp-h1
/test-suite.log

View 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
# ------------------------------------------------------------------------------