Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Omit GOVER_FILE in bin/coverage
Browse files Browse the repository at this point in the history
Not really used, and causes sozorogami/gover#9
  • Loading branch information
mudler committed May 13, 2020
1 parent 5b4115f commit a6a21cb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 0 additions & 3 deletions bin/coverage
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/bin/bash
set -eu

# add missing newlines to work around gover bug: https://github.com/sozorogami/gover/issues/9
find ./code-coverage -type f | while read -r f; do echo >> "$f"; done

# Send code coverage report to coveralls.io
gover ./code-coverage ./code-coverage/gover.coverprofile

Expand Down
4 changes: 1 addition & 3 deletions bin/test-unit
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
#!/bin/bash
set -euo pipefail

GOVER_FILE=${GOVER_FILE:-gover-unit.coverprofile}

# Run code coverage only in CI
COV_ARG=""
if [ ${COVERAGE+x} ]; then
COV_ARG="-cover -outputdir=./code-coverage -coverprofile=${GOVER_FILE}"
COV_ARG="-cover -outputdir=./code-coverage"
fi

mkdir -p code-coverage
Expand Down

0 comments on commit a6a21cb

Please sign in to comment.