Skip to content

Commit

Permalink
Fix goveralls parsing error
Browse files Browse the repository at this point in the history
  • Loading branch information
zankich committed Dec 19, 2014
1 parent 9f90b34 commit 56dbc2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ test:
done ; \

cover:
echo "mode: count" > profile.cov ; \
echo "mode: set" > profile.cov ; \
for package in $(PACKAGES) ; do \
go test -a -coverprofile=tmp.cov github.com/hybridgroup/$$package ; \
cat tmp.cov | grep -v "mode: count" >> profile.cov ; \
cat tmp.cov | grep -v "mode: set" >> profile.cov ; \
done ; \
rm tmp.cov ; \

Expand Down
4 changes: 2 additions & 2 deletions scripts/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ then
go get golang.org/x/tools/cmd/cover
fi

echo "mode: count" > profile.cov
echo "mode: set" > profile.cov
touch tmp.cov
for package in "${PACKAGES[@]}"
do
Expand All @@ -20,7 +20,7 @@ do
then
EXITCODE=1
fi
cat tmp.cov | grep -v "mode: count" >> profile.cov
cat tmp.cov | grep -v "mode: set" >> profile.cov
done

if [ $EXITCODE -ne 0 ]
Expand Down

0 comments on commit 56dbc2c

Please sign in to comment.