summaryrefslogtreecommitdiff
path: root/scripts/collect-coverage.sh
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-02-19 15:31:29 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2016-02-19 17:40:30 +0200
commit6792d789521a104f78a9a702672672387831d78c (patch)
treee068269e371e6847f53739105aa44d80443a09e7 /scripts/collect-coverage.sh
parent6a2d910ccdb8a2521e1dbe4617e5bbdddb6cc4eb (diff)
downloadqtlocation-mapboxgl-6792d789521a104f78a9a702672672387831d78c.tar.gz
[tests] Use ENABLE_COVERAGE=1 envvar to enable coverage
This detaches coverage data collection from typical debug build.
Diffstat (limited to 'scripts/collect-coverage.sh')
-rwxr-xr-xscripts/collect-coverage.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/collect-coverage.sh b/scripts/collect-coverage.sh
index 65f96a0b2b..0007eebd5b 100755
--- a/scripts/collect-coverage.sh
+++ b/scripts/collect-coverage.sh
@@ -3,6 +3,11 @@
set -e
set -o pipefail
+if [ -z ${ENABLE_COVERAGE} ] ; then
+ echo "ENABLE_COVERAGE environment variable is not set, aborting."
+ exit 1
+fi
+
function usage() {
echo "Error: LCOV and genhtml are required for generating coverage reports."
if [ `uname -s` = 'Linux' ]; then