build: Add coverity badge with link to scan results & travis-ci stuff.
Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>
diff --git a/.travis.yml b/.travis.yml
index 43031f4..9de90b5 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,12 +8,26 @@
sudo: required
dist: trusty
+env:
+ global:
+ - secure: "isEwSgRODxm9JPZAhQUXP0yqPZmrD0PncBmi/y02RT0oq6Aewdag5f7CzrsJoPsaEsFcJJapIzdZLw1KXHkeAIHNhOtSE4y9tZGFBfB35pFIb0a/Im47djYrVlBXs7Ii/PllzW4xRMmhU16phwsU2N1nFyvfo9qma8R4ComL7GXTn4UqTjADg73YfPKr2NMt/6nilLKNLGE8FhjmPKhnlrBmKgCUU9BAyJ8cOR529bLOp4Wo5pGhopCHUKrYqRErISiFNcCRxjVyUEPUjMVT7/1QPGyAS2bpJa0rc2QYH9w+H0GkzliuGjzEUPaWcpDKjTimEym7F1XfmZxe1RPMH70KGsdlqe4UyWnWzsHDKnU/oCngKecx0g1beFSn/Mwfv58uDHZlegUZrstHDdkP4RZJEWyGkYDzuBCJ2UGAKJGnig/CE4w9fXFhCIltOW7/55KB53wwTec7bCXpoWV2LtC9L8TtdmmdwsBa4NHpZuLxAr3zlKt8O72mlVuo8C6iqwXCL32sahf4KGWNgc/X5GirbvsWvokGchB1p3vgwQdb/NZXKM77r7gMbnGhIOGzEmrCB3olaG+3RtF2+5KID/Z1LZHIlXDtrCa8dAmMvBIFvjFe9/L9T75d8GwiaOg2wEfNTb8bAsPsBdyKiYvWpKMIXJEcCTGKOpC9Nr0/+uk="
+ # run coverity scan on gcc build to keep from DOSing coverity
+ - coverity_scan_run_condition='"$CC" = gcc'
+
addons:
apt:
packages:
- autoconf-archive
- libcmocka0
- libcmocka-dev
+ coverity_scan:
+ project:
+ name: "01org/TPM2.0-TSS"
+ description: Build submitted via Travis-CI
+ notification_email: philip.b.tricca@intel.com
+ build_command_prepend: "./configure; make clean"
+ build_command: "make --jobs=$(($(nproc)*2))"
+ branch_pattern: coverity_scan
install:
- wget https://downloads.sourceforge.net/project/ibmswtpm2/ibmtpm532.tar
diff --git a/README.md b/README.md
index eadc821..c32bc69 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,5 @@
[![Build Status](https://travis-ci.org/01org/TPM2.0-TSS.svg?branch=master)](https://travis-ci.org/01org/TPM2.0-TSS)
+[![Coverity Scan](https://img.shields.io/coverity/scan/3997.svg)](https://scan.coverity.com/projects/tpm2-tss)
# Overview
This repository hosts source code implementing the Trusted Computing Group's (TCG) TPM2 Software Stack (TSS)