File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 44 @go test ` go list ./... | grep -v /vendor/`
55
66test-travis :
7- @go test -coverprofile=hook.coverprofile ./hook
8- @go test -coverprofile=tsuru.coverprofile ./tsuru
9- @gover
10- @goveralls -coverprofile=gover.coverprofile -service travis-ci
7+ ./travis-test.sh
118
129build :
1310 GOARCH=" amd64" GOOS=" linux" go build -o ./build/snitch_linux/snitch
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -e
3+
4+ for d in $( go list ./... | grep -v vendor) ; do
5+ go test -coverprofile=profile.out $d
6+ if [ -f profile.out ]; then
7+ cat profile.out > ` echo $d | awk -F " /" ' {print $NF}' ` .coverprofile
8+ rm profile.out
9+ fi
10+ done
11+ gover && goveralls -coverprofile=gover.coverprofile -service travis-ci
You can’t perform that action at this time.
0 commit comments