aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/codacy_coverage.sh
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2021-02-03 19:17:50 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2021-02-03 19:17:50 -0500
commit475d074fd74425efbe783fad08f97f2df0c4909f (patch)
tree2acdae53999b3c74b716efa4edb5b40311fa356a /scripts/codacy_coverage.sh
parentcd502d52787f666fff3254d7d7e7578930c813c2 (diff)
parent3a0d66f07b112b6d2bdc2b57bbf717a89a351ce6 (diff)
Update upstream source from tag 'upstream/8.1.2'
Update to upstream version '8.1.2' with Debian dir e5e966a9e6010ef70618dc9a61558fa4db35aceb
Diffstat (limited to 'scripts/codacy_coverage.sh')
-rwxr-xr-xscripts/codacy_coverage.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/codacy_coverage.sh b/scripts/codacy_coverage.sh
new file mode 100755
index 0000000..3ba43ee
--- /dev/null
+++ b/scripts/codacy_coverage.sh
@@ -0,0 +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