aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorWilliam Roberts <william.c.roberts@intel.com>2017-12-12 10:35:04 -0800
committerPhilip Tricca <philip.b.tricca@intel.com>2017-12-13 10:37:03 -0500
commit7fb53ef59803025940fd5bbdd4c5a455713cea37 (patch)
tree8d57abada49a3443198a9ad840de9a7a34c09f66 /.travis.yml
parent03956e41ab2ec41cc878b844ebf0908140e096ab (diff)
downloadtpm2-tss-7fb53ef59803025940fd5bbdd4c5a455713cea37.tar.gz
travis: ensure COVERALLS_REPO_TOKEN is set before uploading
PRs from 3rd party repos don't have access to encrypted env variables. For example, see: https://travis-ci.org/intel/tpm2-tss/jobs/315268038 Signed-off-by: William Roberts <william.c.roberts@intel.com>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index d663ab8a..da104df8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -84,6 +84,6 @@ script:
- cat test/tpmclient/tpmclient.log
- popd
- |
- if [ "$CC" == "gcc" ]; then
+ if [ "$CC" == "gcc" -a -n "$COVERALLS_REPO_TOKEN" ]; then
coveralls --build-root=build --gcov-options '\-lp'
fi