-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Peter Jones <pjones@redhat.com>
- Loading branch information
Showing
5 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ | |
*.tar.* | ||
*.rpm | ||
core.* | ||
cov-int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
include $(TOPDIR)/Make.version | ||
include $(TOPDIR)/Make.rules | ||
include $(TOPDIR)/Make.defaults | ||
|
||
COV_EMAIL=$(call get-config,coverity.email) | ||
COV_TOKEN=$(call get-config,coverity.token) | ||
COV_URL=$(call get-config,coverity.url) | ||
COV_FILE=$(NAME)-coverity-$(VERSION)-$(COMMIT_ID).tar.bz2 | ||
|
||
cov-int : clean | ||
cov-build --dir cov-int make all | ||
|
||
cov-clean : | ||
@rm -vf $(NAME)-coverity-*.tar.* | ||
@if [[ -d cov-int ]]; then rm -rf cov-int && echo "removed 'cov-int'"; fi | ||
|
||
cov-file : | $(COV_FILE) | ||
|
||
$(COV_FILE) : cov-int | ||
tar caf $@ cov-int | ||
|
||
cov-upload : | ||
@if [[ -n "$(COV_URL)" ]] && \ | ||
[[ -n "$(COV_TOKEN)" ]] && \ | ||
[[ -n "$(COV_EMAIL)" ]] ; \ | ||
then \ | ||
echo curl --form token=$(COV_TOKEN) --form email="$(COV_EMAIL)" --form file=@"$(COV_FILE)" --form version=$(VERSION).1 --form description="$(COMMIT_ID)" "$(COV_URL)" ; \ | ||
curl --form token=$(COV_TOKEN) --form email="$(COV_EMAIL)" --form file=@"$(COV_FILE)" --form version=$(VERSION).1 --form description="$(COMMIT_ID)" "$(COV_URL)" ; \ | ||
else \ | ||
echo Coverity output is in $(COV_FILE) ; \ | ||
fi | ||
|
||
coverity : cov-file cov-upload | ||
|
||
clean : | cov-clean | ||
|
||
.PHONY : coverity cov-upload cov-clean cov-file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters