summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pipe_factory.go2
-rw-r--r--pool.go2
-rw-r--r--pool_test.go2
-rw-r--r--socket_factory.go2
-rw-r--r--travis.yaml23
-rw-r--r--worker.go2
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
diff --git a/pool.go b/pool.go
index 75708175..a14dde26 100644
--- a/pool.go
+++ b/pool.go
@@ -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
diff --git a/worker.go b/worker.go
index aee28c1e..ec743738 100644
--- a/worker.go
+++ b/worker.go
@@ -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.