diff --git a/.travis.yml b/.travis.yml index d8d6674..a8d251a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,9 @@ language: go install: - go get github.com/jteeuwen/go-bindata/... + - go get github.com/gorilla/websocket script: - - go test -v ./... \ No newline at end of file + - go test -v ./... + - go-bindata -pkg='bindata' -o bindata/bindata.go static/ + - go build \ No newline at end of file diff --git a/Makefile b/Makefile index 5f0851e..2913826 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -GOPATH=$(CURDIR)/../../ +GOPATH=$(CURDIR)/../../../../ all:godeps bindata.go build diff --git a/README.md b/README.md index 4d66809..53a7bc8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ab-go +# ab-go [![Build Status](https://travis-ci.org/andboson/ab-go.svg?branch=?branch=master)](https://travis-ci.org/andboson/ab-go) Inspired by `apache ab testing tool`. Created with `golang`. Add few features. @@ -56,7 +56,7 @@ String of tested api name, who will be presented in results message in Slask. Us ----------------- #### build: -mkdir $GOPATH/src/ab-go && cd $GOPATH/src/ab-go +mkdir $GOPATH/src/github.com/andboson/ab-go && cd $GOPATH/src/github.com/andboson/ab-go git clone git@github.com:andboson/ab-go.git . diff --git a/ab-go b/ab-go index 1e6f67b..efd57d2 100755 Binary files a/ab-go and b/ab-go differ diff --git a/bindata/bindata.go b/bindata/bindata.go index ce64e9d..81a6c23 100644 --- a/bindata/bindata.go +++ b/bindata/bindata.go @@ -84,7 +84,7 @@ func staticIndexHtml() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "static/index.html", size: 538, mode: os.FileMode(436), modTime: time.Unix(1436511940, 0)} + info := bindataFileInfo{name: "static/index.html", size: 538, mode: os.FileMode(436), modTime: time.Unix(1436550057, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -104,7 +104,7 @@ func staticMainJs() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "static/main.js", size: 3088, mode: os.FileMode(436), modTime: time.Unix(1436526249, 0)} + info := bindataFileInfo{name: "static/main.js", size: 3088, mode: os.FileMode(436), modTime: time.Unix(1436550057, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/main.go b/main.go index cd6f21f..9d7d67e 100644 --- a/main.go +++ b/main.go @@ -2,12 +2,12 @@ package main import ( "fmt" - "ab-go/service" - "ab-go/requests" - "ab-go/templates" + "github.com/andboson/ab-go/service" + "github.com/andboson/ab-go/requests" + "github.com/andboson/ab-go/templates" "os/exec" "os" - "ab-go/server" + "github.com/andboson/ab-go/server" "time" ) diff --git a/requests/dispatcher.go b/requests/dispatcher.go index 379957b..ef103ec 100644 --- a/requests/dispatcher.go +++ b/requests/dispatcher.go @@ -6,7 +6,7 @@ import ( "os" "bufio" "net/http" - "ab-go/service" + "github.com/andboson/ab-go/service" "math" "fmt" ) diff --git a/server/sendresults.go b/server/sendresults.go index 4ee991e..72e43bf 100644 --- a/server/sendresults.go +++ b/server/sendresults.go @@ -1,6 +1,6 @@ package server import ( - "ab-go/requests" + "github.com/andboson/ab-go/requests" "bytes" "net/http" "log" @@ -9,7 +9,7 @@ import ( "encoding/json" "net/url" "fmt" - "ab-go/templates" + "github.com/andboson/ab-go/templates" ) type Message struct { diff --git a/server/server.go b/server/server.go index f059bf1..3ca7eee 100644 --- a/server/server.go +++ b/server/server.go @@ -5,9 +5,9 @@ import ( "net/http" "time" "github.com/gorilla/websocket" - "ab-go/requests" - "ab-go/bindata" - "ab-go/service" + "github.com/andboson/ab-go/requests" + "github.com/andboson/ab-go/bindata" + "github.com/andboson/ab-go/service" ) const ( diff --git a/templates/formatter.go b/templates/formatter.go index 71de044..3c6a954 100644 --- a/templates/formatter.go +++ b/templates/formatter.go @@ -1,6 +1,6 @@ package templates import ( - "ab-go/requests" + "github.com/andboson/ab-go/requests" "fmt" ) diff --git a/tests/services_test.go b/tests/services_test.go index aae8de1..a53ba0e 100644 --- a/tests/services_test.go +++ b/tests/services_test.go @@ -2,8 +2,8 @@ package tests import ( "testing" - "ab-go/service" - "ab-go/requests" + "github.com/andboson/ab-go/service" + "github.com/andboson/ab-go/requests" ) func TestReadUrls(t *testing.T){