aboutsummaryrefslogtreecommitdiff
path: root/etc/codecov.sh
diff options
context:
space:
mode:
Diffstat (limited to 'etc/codecov.sh')
-rwxr-xr-xetc/codecov.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/codecov.sh b/etc/codecov.sh
new file mode 100755
index 00000000..58ce44fc
--- /dev/null
+++ b/etc/codecov.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+if [ "${COVERAGE}" != ON ]
+then
+ echo "Code coverage not enabled."
+ exit 0
+fi
+
+bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage"
+echo 0