Skip to content

Commit

Permalink
Test with coverage each directory
Browse files Browse the repository at this point in the history
  • Loading branch information
minodisk committed Feb 2, 2016
1 parent 34cd7f4 commit 2834dd6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ dependencies:

test:
override:
- go test -v -race -cover -coverprofile=$CIRCLE_ARTIFACTS/coverage.out
- go test -v -race -cover -coverprofile=$CIRCLE_ARTIFACTS/.coverage ./
- go test -v -race -cover -coverprofile=$CIRCLE_ARTIFACTS/api.coverage ./api
- go test -v -race -cover -coverprofile=$CIRCLE_ARTIFACTS/command.coverage ./command
- go test -v -race -cover -coverprofile=$CIRCLE_ARTIFACTS/model.coverage ./model
post:
- /home/ubuntu/bin/goveralls -coverprofile=$CIRCLE_ARTIFACTS/coverage.out -service=circle-ci -repotoken=$COVERALLS_TOKEN
- /home/ubuntu/bin/goveralls -coverprofile=$CIRCLE_ARTIFACTS/.coverage -service=circle-ci -repotoken=$COVERALLS_TOKEN
- /home/ubuntu/bin/goveralls -coverprofile=$CIRCLE_ARTIFACTS/api.coverage -service=circle-ci -repotoken=$COVERALLS_TOKEN
- /home/ubuntu/bin/goveralls -coverprofile=$CIRCLE_ARTIFACTS/command.coverage -service=circle-ci -repotoken=$COVERALLS_TOKEN
- /home/ubuntu/bin/goveralls -coverprofile=$CIRCLE_ARTIFACTS/model.coverage -service=circle-ci -repotoken=$COVERALLS_TOKEN
1 change: 1 addition & 0 deletions main_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package main_test

0 comments on commit 2834dd6

Please sign in to comment.