Explorar el Código

Merge branch 'master' of github.com:Psiphon-Labs/psiphon-tunnel-core

Michael Goldberger hace 10 años
padre
commit
44b99ca3d6
Se han modificado 2 ficheros con 7 adiciones y 1 borrados
  1. 6 0
      .travis.yml
  2. 1 1
      README.md

+ 6 - 0
.travis.yml

@@ -9,6 +9,12 @@ install:
 - go get -t -d -v ./... && go build -v ./...
 script:
 - go test -v ./...
+- cd psiphon
+- go test -v -covermode=count -coverprofile=coverage.out
+- $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN
 before_install:
+- go get github.com/axw/gocov/gocov
+- go get github.com/mattn/goveralls
+- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
 - openssl aes-256-cbc -K $encrypted_9e40808ea1e2_key -iv $encrypted_9e40808ea1e2_iv
   -in psiphon/controller_test.config.enc -out psiphon/controller_test.config -d

+ 1 - 1
README.md

@@ -1,4 +1,4 @@
-[![Build Status](https://travis-ci.org/Psiphon-Labs/psiphon-tunnel-core.png)](https://travis-ci.org/Psiphon-Labs/psiphon-tunnel-core)
+[![Build Status](https://travis-ci.org/Psiphon-Labs/psiphon-tunnel-core.png)](https://travis-ci.org/Psiphon-Labs/psiphon-tunnel-core) [![Coverage Status](https://coveralls.io/repos/github/Psiphon-Labs/psiphon-tunnel-core/badge.svg?branch=master)](https://coveralls.io/github/Psiphon-Labs/psiphon-tunnel-core?branch=master)
 
 Psiphon 3 Tunnel Core README
 ================================================================================