add some badge
parent
786ab90b78
commit
ff98718f2a
|
@ -0,0 +1,28 @@
|
|||
language: go
|
||||
sudo: false
|
||||
|
||||
notifications:
|
||||
email:
|
||||
recipients:
|
||||
- yangwen.yw@gmail.com
|
||||
on_success: change
|
||||
on_failure: always
|
||||
|
||||
go:
|
||||
- 1.8.3
|
||||
|
||||
install:
|
||||
- go get github.com/go-playground/overalls
|
||||
- go get github.com/mattn/goveralls
|
||||
- go get github.com/smartystreets/goconvey
|
||||
- mkdir -p $GOPATH/src/github.com/yangwenmai
|
||||
- cd $GOPATH/src/github.com/yangwenmai/golangBlogCN
|
||||
|
||||
script:
|
||||
- overalls -project=github.com/yangwenmai/golangBlogCN -covermode=count -ignore='.git,_vendor'
|
||||
- goveralls -coverprofile=overalls.coverprofile -service=travis-ci -repotoken $COVERALLS_TOKEN
|
||||
- go test ./...
|
||||
|
||||
env:
|
||||
global:
|
||||
secure: "EPqqezQz+tMrDDI2r8iL++iEPEWMr1EG3MSQhbYMtFqLQzt56hL5O8wO1kmbUJVaMGzSr5lOQNtxZO8jSxGt062TGsVFlg+cmwbAql0Zz0ONczbhmdDqEx5HDKDSUSKEZq5eerbmyfwhZ3HzSSafCJmgqcl9BMbzAV8AkN4OExTWS1FNzdc8y8hPNbOlETVr7UDcEeEG9zLE3EUtr9OwtM+m9tUgGuas02QUthOsYVtYuU6TboSZ85Y4D+cPQsiyK6ZZ/ltnbClNOqyDOi+h+FgZtbhbRH9TrUiZiFLsOc9QPlCnGgYLaEc6Rsd2MnNexSA59twui6O+Xexy5FyejunOtjkfKFZS7iXL3jpu8ayAzNECGezhkJUXSNBhWv2nDh1jBVFFrnCKxFJILL0oG/Zky9QmzD3sIoHPzwXLW0xU76mS2kGSkKjVCuoJMDjry6KB0hUMA8ETv+OPoGVFQ4UmtWKSazjo59by5XFacc6FR2MilnsAfBThnnQPKl5UZCMHXjHPOE8EYIwaKQTtfCWFoYi66GgCacRRENJRZ9L/IZxWIx8BIJ6AsspZqmLQJE+Cb+J3sT7YaSMmhX+NsHFPOD6Vd/+Fzvls9+aQX+Gu/qbSgiLvTJKSeaKA2oFSIfz5eQ9juvTqDyOeOg9pKKSVECNrXa7PV0m50bSYgIU="
|
|
@ -1,4 +1,5 @@
|
|||
中文 Golang 开发博客/微信公众号列表
|
||||
[](https://travis-ci.org/yangwenmai/golangBlogCN) [](https://goreportcard.com/report/github.com/yangwenmai/golangBlogCN) [](http://godoc.org/github.com/yangwenmai/golangBlogCN) [](https://coveralls.io/github/yangwenmai/golangBlogCN?branch=master) [](https://github.com/yangwenmai/golangBlogCN/issues) [](https://github.com/yangwenmai/golangBlogCN/LICENSE) [](https://github.com/yangwenmai/golangBlogCN/releases)
|
||||
=========
|
||||
|
||||
本博客列表会不断更新维护,如果有推荐的博客、微信公众号,请到此处[提交博客/公众号信息](https://github.com/yangwenmai/golangBlogCN/issues/1)。
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
package main
|
||||
|
||||
// Add return a + b
|
||||
func Add(a, b int) int {
|
||||
return a + b
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
package main
|
||||
|
||||
import "testing"
|
||||
import . "github.com/smartystreets/goconvey/convey"
|
||||
|
||||
func TestAdd(t *testing.T) {
|
||||
Convey("test add", t, func() {
|
||||
a := 3
|
||||
b := 1
|
||||
c := Add(a, b)
|
||||
So(c, ShouldEqual, 4)
|
||||
})
|
||||
}
|
Loading…
Reference in New Issue