Skip to content

Commit

Permalink
ci, reuseport, writer: update travis config and goimports -w on whole…
Browse files Browse the repository at this point in the history
… project

Signed-off-by: Kirill Danshin <kirill@danshin.pro>
  • Loading branch information
kirillDanshin committed Aug 12, 2018
1 parent bca56ee commit 110dea2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
18 changes: 17 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
language: go

go:
- tip
- 1.10.x
- 1.9.x
- 1.8.x

os:
- linux
- osx

matrix:
allow_failures:
- tip
fast_finish: true

before_install:
- GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/)
- go get -t -v ./...
- go get -v golang.org/x/tools/cmd/goimports

script:
- test -z $(goimports -l $GO_FILES)
# build test for supported platforms
- GOOS=linux go build
- GOOS=darwin go build
Expand Down
3 changes: 2 additions & 1 deletion reuseport/reuseport.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ package reuseport

import (
"fmt"
"github.com/valyala/tcplisten"
"net"
"strings"

"github.com/valyala/tcplisten"
)

// ErrNoReusePort is returned if the OS doesn't support SO_REUSEPORT.
Expand Down
3 changes: 2 additions & 1 deletion stackless/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package stackless
import (
"errors"
"fmt"
"github.com/valyala/bytebufferpool"
"io"

"github.com/valyala/bytebufferpool"
)

// Writer is an interface stackless writer must conform to.
Expand Down

0 comments on commit 110dea2

Please sign in to comment.