Skip to content

Commit

Permalink
feat(testing): fixed test-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
yyoshiki41 committed Jan 18, 2018
1 parent a17068d commit 27bae32
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,14 @@ test-out:
GO_RADIKO_OUTSIDE_JP=true go test $(PKGS)

test-ci:
@echo "GO_RADIKO_OUTSIDE_JP=true go test"
@GO_RADIKO_OUTSIDE_JP=true go test -race -coverprofile=coverage.txt -covermode=atomic $(PKGS)
echo "GO_RADIKO_OUTSIDE_JP=true go test"
echo "" > coverage.txt
$(foreach pkg, $(PKGS), \
GO_RADIKO_OUTSIDE_JP=true \
go test -race -coverprofile=profile.txt -covermode=atomic $(pkg); \
[ ! -f profile.txt ] && continue; \
cat profile.txt >> coverage.txt; \
rm profile.txt;)

verify: lint vet

Expand Down

0 comments on commit 27bae32

Please sign in to comment.