Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
stevepeak committed Oct 27, 2015
1 parent 93a9410 commit 4eb2263
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -9,7 +9,7 @@ before_install:
- go get code.google.com/p/go.tools/cmd/cover

script:
- go test -coverprofile=coverage.txt -covermode=atomic
- ./go.test.sh

after_success:
- bash <(curl -s https://codecov.io/bash)
9 changes: 9 additions & 0 deletions example_go.go
Expand Up @@ -5,10 +5,19 @@ import "github.com/codecov/example-go/awesome"
var result string

func Setup() {

// Comment

result = awesome.Smile()

}

func GetResult() string {

/*
Comment
*/

return result

}
14 changes: 14 additions & 0 deletions go.test.sh
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

set -e
echo "" > coverage.txt

for d in $(find . -maxdepth 10 -type d); do
if ls $d/*.go &> /dev/null; then
go test -coverprofile=profile.out -covermode=atomic $d
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
fi
done

0 comments on commit 4eb2263

Please sign in to comment.