Browse Source

add some badge

pull/3/head
yangwenmai 7 years ago
parent
commit
ff98718f2a
  1. 28
      .travis.yml
  2. 1
      README.md
  3. 6
      export.go
  4. 13
      export_test.go

28
.travis.yml

@ -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
README.md

@ -1,4 +1,5 @@
中文 Golang 开发博客/微信公众号列表
[![Build Status](https://travis-ci.org/yangwenmai/golangBlogCN.svg?branch=master)](https://travis-ci.org/yangwenmai/golangBlogCN) [![Go Report Card](https://goreportcard.com/badge/github.com/yangwenmai/golangBlogCN)](https://goreportcard.com/report/github.com/yangwenmai/golangBlogCN) [![Documentation](https://godoc.org/github.com/yangwenmai/golangBlogCN?status.svg)](http://godoc.org/github.com/yangwenmai/golangBlogCN) [![Coverage Status](https://coveralls.io/repos/github/yangwenmai/golangBlogCN/badge.svg?branch=master)](https://coveralls.io/github/yangwenmai/golangBlogCN?branch=master) [![GitHub issues](https://img.shields.io/github/issues/yangwenmai/golangBlogCN.svg)](https://github.com/yangwenmai/golangBlogCN/issues) [![license](https://img.shields.io/github/license/yangwenmai/golangBlogCN.svg?maxAge=2592000)](https://github.com/yangwenmai/golangBlogCN/LICENSE) [![Release](https://img.shields.io/github/release/yangwenmai/golangBlogCN.svg?label=Release)](https://github.com/yangwenmai/golangBlogCN/releases)
=========
本博客列表会不断更新维护,如果有推荐的博客、微信公众号,请到此处[提交博客/公众号信息](https://github.com/yangwenmai/golangBlogCN/issues/1)。

6
export.go

@ -0,0 +1,6 @@
package main
// Add return a + b
func Add(a, b int) int {
return a + b
}

13
export_test.go

@ -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…
Cancel
Save