diff options
author | Felix Lange <fjl@twurst.com> | 2015-04-29 07:27:47 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-04-29 08:13:37 +0800 |
commit | aa03e53ca8d55e74e562f5f56d90e4fd2579fb4e (patch) | |
tree | f9aa18e2bc9b27d26767d4a6bbb33426b4c67bc5 /gocoverage.sh | |
parent | c6b983e449ec97d902f263cd693cf615b790542a (diff) | |
download | go-tangerine-aa03e53ca8d55e74e562f5f56d90e4fd2579fb4e.tar go-tangerine-aa03e53ca8d55e74e562f5f56d90e4fd2579fb4e.tar.gz go-tangerine-aa03e53ca8d55e74e562f5f56d90e4fd2579fb4e.tar.bz2 go-tangerine-aa03e53ca8d55e74e562f5f56d90e4fd2579fb4e.tar.lz go-tangerine-aa03e53ca8d55e74e562f5f56d90e4fd2579fb4e.tar.xz go-tangerine-aa03e53ca8d55e74e562f5f56d90e4fd2579fb4e.tar.zst go-tangerine-aa03e53ca8d55e74e562f5f56d90e4fd2579fb4e.zip |
Use Makefile for Travis tests
Diffstat (limited to 'gocoverage.sh')
-rwxr-xr-x | gocoverage.sh | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/gocoverage.sh b/gocoverage.sh deleted file mode 100755 index 5479d8d3b..000000000 --- a/gocoverage.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash - -set -e - -# Add godep workspace to GOPATH. We do it manually instead of using -# 'godep go test' or 'godep restore' so godep doesn't need to be installed. -GOPATH="$PWD/Godeps/_workspace:$GOPATH" - -# Install packages before testing. Not doing this would cause -# 'go test' to recompile all package dependencies before testing each package. -go install ./... - -# Run test coverage on each subdirectories and merge the coverage profile. -echo "mode: count" > profile.cov - -# Standard go tooling behavior is to ignore dirs with leading underscors -for dir in $(find . -maxdepth 10 -not -path './.git*' -not -path '*/_*' -type d); -do -if ls $dir/*.go &> /dev/null; then - # echo $dir - if [[ $dir != "./tests/vm" && $dir != "." ]] - 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 - rm $dir/profile.tmp - fi -fi -done |