diff options
-rw-r--r-- | pipe_factory.go | 2 | ||||
-rw-r--r-- | pool.go | 2 | ||||
-rw-r--r-- | pool_test.go | 2 | ||||
-rw-r--r-- | socket_factory.go | 2 | ||||
-rw-r--r-- | travis.yaml | 23 | ||||
-rw-r--r-- | worker.go | 2 |
6 files changed, 28 insertions, 5 deletions
diff --git a/pipe_factory.go b/pipe_factory.go index 30c34139..3caa58ee 100644 --- a/pipe_factory.go +++ b/pipe_factory.go @@ -1,10 +1,10 @@ package roadrunner import ( + "github.com/pkg/errors" "github.com/spiral/goridge" "io" "os/exec" - "github.com/pkg/errors" ) // PipeFactory connects to workers using standard @@ -2,11 +2,11 @@ package roadrunner import ( "fmt" + "github.com/pkg/errors" "log" "os/exec" "sync" "time" - "github.com/pkg/errors" ) const ( diff --git a/pool_test.go b/pool_test.go index 92a594df..88926a9b 100644 --- a/pool_test.go +++ b/pool_test.go @@ -4,10 +4,10 @@ import ( "github.com/stretchr/testify/assert" "os/exec" "runtime" + "strconv" "sync" "testing" "time" - "strconv" ) var cfg = Config{ diff --git a/socket_factory.go b/socket_factory.go index b915973b..161712e0 100644 --- a/socket_factory.go +++ b/socket_factory.go @@ -2,12 +2,12 @@ package roadrunner import ( "fmt" + "github.com/pkg/errors" "github.com/spiral/goridge" "net" "os/exec" "sync" "time" - "github.com/pkg/errors" ) // SocketFactory connects to external workers using socket server. diff --git a/travis.yaml b/travis.yaml new file mode 100644 index 00000000..c2460f18 --- /dev/null +++ b/travis.yaml @@ -0,0 +1,23 @@ +language: php + +sudo: required + +php: + - 7.0 + - 7.1 + - 7.2 + +go: + - 1.8 + +before_install: + - composer self-update + +install: + - composer install --no-interaction --prefer-source + - go get "github.com/spiral/goridge" + - go get "github.com/pkg/errors" + - go get "github.com/stretchr/testify/assert" + +script: + - go test -race -bench=. -benchmem -v
\ No newline at end of file @@ -3,13 +3,13 @@ package roadrunner import ( "bytes" "fmt" + "github.com/pkg/errors" "github.com/spiral/goridge" "os" "os/exec" "strconv" "strings" "sync" - "github.com/pkg/errors" ) // Worker - supervised process with api over goridge.Relay. |