diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..e69de29 diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..597589f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,19 @@ +language: go + + +go: + - 1.9.x + +before_script: + - go get -u -t -v github.com/lflxp/sflow/... + - go get github.com/google/gopacket + +script: + - go test -v ./... + - goveralls -service=travis-ci + +notifications: + email: + recipients: 382023823@qq.com + on_success: change + on_failure: always \ No newline at end of file diff --git a/README.md b/README.md index 8b681ab..7e9c502 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +# SFlow [![Circle CI](https://circleci.com/gh/lflxp/sflow.svg)](https://circleci.com/gh/lflxp) [![GoDoc](https://godoc.org/github.com/lflxp/sflow?status.svg)](https://godoc.org/github.com/lflxp/sflow) [![Coverage Status](https://coveralls.io/repos/github/lflxp/sflow/badge.svg?branch=master)](https://coveralls.io/github/lflxp/sflow?branch=master) + # Info Parsing sFlow for packetbeat plug-ins @@ -25,4 +27,4 @@ decoder all of layers SFlowGenericInterfaceCounters SFlowEthernetCounters SFlowProcessorCounters -``` \ No newline at end of file +```