diff options
| author | 2021-02-03 19:17:00 -0500 | |
|---|---|---|
| committer | 2021-02-03 19:17:00 -0500 | |
| commit | 3a0d66f07b112b6d2bdc2b57bbf717a89a351ce6 (patch) | |
| tree | a7cf56282e54f05785243bc1e903d6594f2c06ba /scripts/codacy_coverage.sh | |
| parent | 787b97a4cb24330b36f11297c6d3a7a473a907d0 (diff) | |
New upstream version 8.1.2.upstream/8.1.2
Diffstat (limited to 'scripts/codacy_coverage.sh')
| -rwxr-xr-x | scripts/codacy_coverage.sh | 10 |
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 |
