Skip to content

Commit

Permalink
add some badge
Browse files Browse the repository at this point in the history
  • Loading branch information
yangwenmai committed Sep 1, 2017
1 parent 786ab90 commit ff98718
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
language: go
sudo: false

notifications:
email:
recipients:
- [email protected]
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 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
6 changes: 6 additions & 0 deletions export.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package main

// Add return a + b
func Add(a, b int) int {
return a + b
}
13 changes: 13 additions & 0 deletions export_test.go
Original file line number Diff line number Diff line change
@@ -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)
})
}

0 comments on commit ff98718

Please sign in to comment.