[tor-commits] [snowflake/master] Test on Travis
arlo at torproject.org
arlo at torproject.org
Thu Jan 21 23:42:55 UTC 2016
commit 133f6579284e49c925b2874d7039d008aa485ec3
Author: Arlo Breault <arlolra at gmail.com>
Date: Thu Jan 21 15:33:42 2016 -0800
Test on Travis
* Closes #10
---
.travis.yml | 12 ++++++++++++
Makefile | 5 +++++
README.md | 2 ++
client/meek-webrtc.go | 2 +-
4 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..68c2493
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,12 @@
+language: go
+
+go:
+ - 1.5
+
+before_script:
+ npm install -g coffee-script
+
+script:
+ - make check
+ - go test -v -race ./broker
+ - cd proxy && cake test
\ No newline at end of file
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..688e273
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,5 @@
+.SILENT: check
+.PHONY: check
+check:
+ ! gofmt -l . 2>&1 | read
+ go vet ./broker ./client ./server
\ No newline at end of file
diff --git a/README.md b/README.md
index 077a900..7228264 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,7 @@
# snowflake-pt
+[![Build Status](https://travis-ci.org/keroserene/snowflake.svg?branch=master)](https://travis-ci.org/keroserene/snowflake)
+
A Pluggable Transport using WebRTC
### Status
diff --git a/client/meek-webrtc.go b/client/meek-webrtc.go
index 369987d..34ff185 100644
--- a/client/meek-webrtc.go
+++ b/client/meek-webrtc.go
@@ -64,7 +64,7 @@ func (mc *MeekChannel) Negotiate(offer *webrtc.SessionDescription) (
return nil, err
}
defer resp.Body.Close()
- log.Printf("MeekChannel Response:\n%s\n\n", resp)
+ log.Printf("MeekChannel Response:\n%s\n\n", resp.Status)
body, err := ioutil.ReadAll(resp.Body)
if nil != err {
return nil, err
More information about the tor-commits
mailing list