yangwenmai
7 years ago
4 changed files with 48 additions and 0 deletions
@ -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=" |
@ -0,0 +1,6 @@
|
||||
package main |
||||
|
||||
// Add return a + b
|
||||
func Add(a, b int) int { |
||||
return a + b |
||||
} |
Loading…
Reference in new issue