Browse Source

Setup TravisCI to report cov stats to coveralls.io.

Dave Collins 11 năm trước cách đây
mục cha
commit
8ae4f2591e
1 tập tin đã thay đổi với 9 bổ sung0 xóa
  1. 9 0
      .travis.yml

+ 9 - 0
.travis.yml

@@ -1,2 +1,11 @@
 language: go
 go: 1.2
+install:
+    - go get -v code.google.com/p/go.tools/cmd/cover
+script:
+    - go test -v ./spew -covermode=count -coverprofile=profile.cov
+after_success:
+    - go get -v github.com/mattn/goveralls
+    - export PATH=$PATH:$HOME/gopath/bin
+    - cd ./spew
+    - goveralls -v -service travis-ci