aboutsummaryrefslogtreecommitdiffstats
path: root/gocoverage.sh
diff options
context:
space:
mode:
authorJeffrey Wilcke <obscuren@users.noreply.github.com>2014-12-22 18:42:28 +0800
committerJeffrey Wilcke <obscuren@users.noreply.github.com>2014-12-22 18:42:28 +0800
commite531c6fc6cb9c54969a85eca6642561dff958a27 (patch)
tree03999dbaae12f77403eef52e074ec71cd4ac5b40 /gocoverage.sh
parent795b14330ad4399ef292835eac452d258dcd7464 (diff)
parent4fd4facf35dc8a2f273fd5e4acacf5c62baa0de2 (diff)
downloaddexon-e531c6fc6cb9c54969a85eca6642561dff958a27.tar
dexon-e531c6fc6cb9c54969a85eca6642561dff958a27.tar.gz
dexon-e531c6fc6cb9c54969a85eca6642561dff958a27.tar.bz2
dexon-e531c6fc6cb9c54969a85eca6642561dff958a27.tar.lz
dexon-e531c6fc6cb9c54969a85eca6642561dff958a27.tar.xz
dexon-e531c6fc6cb9c54969a85eca6642561dff958a27.tar.zst
dexon-e531c6fc6cb9c54969a85eca6642561dff958a27.zip
Merge pull request #217 from ethereum/tests
Updated code coverage support & cleanup
Diffstat (limited to 'gocoverage.sh')
-rwxr-xr-xgocoverage.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/gocoverage.sh b/gocoverage.sh
index 35038108b..24c8e9280 100755
--- a/gocoverage.sh
+++ b/gocoverage.sh
@@ -13,7 +13,10 @@ for dir in $(find . -maxdepth 10 -not -path './.git*' -not -path '*/_*' -type d)
do
if ls $dir/*.go &> /dev/null; then
# echo $dir
- go test -covermode=count -coverprofile=$dir/profile.tmp $dir
+ if [[ $dir != "./tests/vm" ]]
+ then
+ go test -covermode=count -coverprofile=$dir/profile.tmp $dir
+ fi
if [ -f $dir/profile.tmp ]
then
cat $dir/profile.tmp | tail -n +2 >> profile.cov
@@ -26,4 +29,4 @@ go tool cover -func profile.cov
# To submit the test coverage result to coveralls.io,
# use goveralls (https://github.com/mattn/goveralls)
-# goveralls -coverprofile=profile.cov -service=travis-ci
+goveralls -coverprofile=profile.cov -service=travis-ci -repotoken $COVERALLS_TOKEN