Github may allow administrators in Linaro github group post codecov from their local repositories. That happens if same token is used for personal git and Linaro group. There is one small side affect that history of tests fill web page of Linaro official project. To make history more clean post codecov results only for main repo.
Signed-off-by: Maxim Uvarov <maxim.uva...@linaro.org> --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 1ab943fe..ef9c3283 100644 --- a/.travis.yml +++ b/.travis.yml @@ -133,7 +133,7 @@ script: - sudo rm -rf $KSRC after_success: - - if [ -n "$DOCOV" ]; then find . -type f -iname '*.[ch]' -not -path ".git/*" -execdir gcov {} \; ; bash <(curl -s https://codecov.io/bash) -X coveragepy; fi + - if [ -n "$DOCOV" ] && [ "$TRAVIS_REPO_SLUG" = "Linaro/odp" ]; then find . -type f -iname '*.[ch]' -not -path ".git/*" -execdir gcov {} \; ; bash <(curl -s https://codecov.io/bash) -X coveragepy; fi addons: coverity_scan: -- 2.11.0.295.gd7dffce