Skip to content
Permalink
Browse files
Ignore Codacy coverage in PRs from non-contributors
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Feb 6, 2017
1 parent d237073 commit 270f7ba7cd90c51f57c1ebce731b71f463b20ed6
Showing with 4 additions and 0 deletions.
  1. +4 −0 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.