1
0
mirror of https://github.com/prometheus-community/postgres_exporter.git synced 2025-06-11 19:08:13 +03:00

Add coverage and code quality badges.

This commit is contained in:
Will Rouesnel
2017-02-25 00:19:07 +11:00
parent 8ded56a7da
commit ff8e0c5382
7 changed files with 52 additions and 6 deletions

View File

@ -0,0 +1,15 @@
#!/bin/bash
# This script wraps the integration test binary so it produces concatenated
# test output.
test_binary=$1
shift
output_cov=$1
shift
echo "mode: count" > $output_cov
test_cov=$(mktemp)
$test_binary -test.coverprofile=$test_cov $@
tail -n +2 $test_cov >> $output_cov
rm -f $test_cov