github.com/ianfoo/lab@v0.9.5-0.20180123060006-5ed79f2ccfc7/Makefile (about) 1 test: 2 bash -c "trap 'trap - SIGINT SIGTERM ERR; mv testdata/.git testdata/test.git; exit 1' SIGINT SIGTERM ERR; $(MAKE) internal-test" 3 4 internal-test: 5 dep ensure 6 rm coverage-* 2>&1 > /dev/null || true 7 mv testdata/test.git testdata/.git 8 go test -coverprofile=coverage-git.out -covermode=count github.com/zaquestion/lab/internal/git 9 go test -coverprofile=coverage-gitlab.out -covermode=count github.com/zaquestion/lab/internal/gitlab 10 go test -coverprofile=coverage-cmd.out -covermode=count -coverpkg ./... github.com/zaquestion/lab/cmd 11 mv testdata/.git testdata/test.git 12 go get github.com/wadey/gocovmerge 13 gocovmerge coverage-*.out > coverage.txt && rm coverage-*.out