Skip to content

Commit

Permalink
Ignore Codacy coverage in PRs from non-contributors
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Feb 6, 2017
1 parent d237073 commit 270f7ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/codacy_coverage.sh
@@ -1,6 +1,10 @@
#!/bin/bash
PYVER=$(scripts/getpyver.py short)
if [[ $PYVER == '3.6' ]]; then
if [[ "x$CODACY_PROJECT_TOKEN" == "x" ]]; then
echo "Warning: Codacy token not available (PR from non-member), unable to send coverage info."
exit 0
fi
coverage xml
python-codacy-coverage -r coverage.xml
fi

0 comments on commit 270f7ba

Please sign in to comment.