Skip to content

Commit

Permalink
Merge pull request #1 from yangwenmai/develop
Browse files Browse the repository at this point in the history
add codecov
  • Loading branch information
yangwenmai authored Dec 6, 2017
2 parents b2eafa0 + 385e124 commit 693e23e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ install:
script:
- overalls -project=github.com/yangwenmai/how-to-add-badge-in-github-readme -covermode=count -ignore='.git,_vendor'
- goveralls -coverprofile=overalls.coverprofile -service=travis-ci -repotoken $COVERALLS_TOKEN
- go test -race -coverprofile=coverage.txt -covermode=atomic
- go test ./...

after_success:
- bash <(curl -s https://codecov.io/bash)

env:
global:
secure: "EPqqezQz+tMrDDI2r8iL++iEPEWMr1EG3MSQhbYMtFqLQzt56hL5O8wO1kmbUJVaMGzSr5lOQNtxZO8jSxGt062TGsVFlg+cmwbAql0Zz0ONczbhmdDqEx5HDKDSUSKEZq5eerbmyfwhZ3HzSSafCJmgqcl9BMbzAV8AkN4OExTWS1FNzdc8y8hPNbOlETVr7UDcEeEG9zLE3EUtr9OwtM+m9tUgGuas02QUthOsYVtYuU6TboSZ85Y4D+cPQsiyK6ZZ/ltnbClNOqyDOi+h+FgZtbhbRH9TrUiZiFLsOc9QPlCnGgYLaEc6Rsd2MnNexSA59twui6O+Xexy5FyejunOtjkfKFZS7iXL3jpu8ayAzNECGezhkJUXSNBhWv2nDh1jBVFFrnCKxFJILL0oG/Zky9QmzD3sIoHPzwXLW0xU76mS2kGSkKjVCuoJMDjry6KB0hUMA8ETv+OPoGVFQ4UmtWKSazjo59by5XFacc6FR2MilnsAfBThnnQPKl5UZCMHXjHPOE8EYIwaKQTtfCWFoYi66GgCacRRENJRZ9L/IZxWIx8BIJ6AsspZqmLQJE+Cb+J3sT7YaSMmhX+NsHFPOD6Vd/+Fzvls9+aQX+Gu/qbSgiLvTJKSeaKA2oFSIfz5eQ9juvTqDyOeOg9pKKSVECNrXa7PV0m50bSYgIU="
7 changes: 5 additions & 2 deletions example_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package main

import "testing"
import . "github.com/smartystreets/goconvey/convey"
import (
"testing"

. "github.com/smartystreets/goconvey/convey"
)

func TestShowProjectName(t *testing.T) {
Convey("test add", t, func() {
Expand Down
2 changes: 2 additions & 0 deletions overalls.coverprofile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mode: count
github.com/yangwenmai/how-to-add-badge-in-github-readme/example.go:4.24,6.2 1 0
2 changes: 2 additions & 0 deletions profile.coverprofile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mode: count
github.com/yangwenmai/how-to-add-badge-in-github-readme/example.go:4.24,6.2 1 0

0 comments on commit 693e23e

Please sign in to comment.