Merge pull request #458 from mrd0ll4r/update-travis
travis: update to go 1.13
This commit is contained in:
commit
0a420fe053
3 changed files with 5 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
||||||
language: go
|
language: go
|
||||||
go:
|
go:
|
||||||
- 1.11.x
|
- 1.13.x
|
||||||
sudo: false
|
sudo: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
@ -9,7 +9,6 @@ matrix:
|
||||||
- go get -u golang.org/x/lint/golint
|
- go get -u golang.org/x/lint/golint
|
||||||
- go get -u golang.org/x/tools/cmd/...
|
- go get -u golang.org/x/tools/cmd/...
|
||||||
script:
|
script:
|
||||||
- export GO111MODULE=on
|
|
||||||
- go mod download
|
- go mod download
|
||||||
- go test -v -race $(go list ./...)
|
- go test -v -race $(go list ./...)
|
||||||
- go vet $(go list ./...)
|
- go vet $(go list ./...)
|
||||||
|
@ -23,7 +22,7 @@ matrix:
|
||||||
- kill $pid
|
- kill $pid
|
||||||
# Using HEAD of dependencies
|
# Using HEAD of dependencies
|
||||||
- install:
|
- install:
|
||||||
- go get -t ./...
|
- go get -t -u ./...
|
||||||
- go get -u golang.org/x/lint/golint
|
- go get -u golang.org/x/lint/golint
|
||||||
- go get -u golang.org/x/tools/cmd/...
|
- go get -u golang.org/x/tools/cmd/...
|
||||||
script:
|
script:
|
||||||
|
@ -40,7 +39,7 @@ matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
# Using HEAD of dependencies
|
# Using HEAD of dependencies
|
||||||
- install:
|
- install:
|
||||||
- go get -t ./...
|
- go get -t -u ./...
|
||||||
- go get -u golang.org/x/lint/golint
|
- go get -u golang.org/x/lint/golint
|
||||||
- go get -u golang.org/x/tools/cmd/...
|
- go get -u golang.org/x/tools/cmd/...
|
||||||
script:
|
script:
|
||||||
|
|
|
@ -10,17 +10,13 @@ import (
|
||||||
"github.com/chihaya/chihaya/frontend/http"
|
"github.com/chihaya/chihaya/frontend/http"
|
||||||
"github.com/chihaya/chihaya/frontend/udp"
|
"github.com/chihaya/chihaya/frontend/udp"
|
||||||
"github.com/chihaya/chihaya/middleware"
|
"github.com/chihaya/chihaya/middleware"
|
||||||
)
|
|
||||||
|
|
||||||
import (
|
|
||||||
// Imports to register middleware drivers.
|
// Imports to register middleware drivers.
|
||||||
_ "github.com/chihaya/chihaya/middleware/clientapproval"
|
_ "github.com/chihaya/chihaya/middleware/clientapproval"
|
||||||
_ "github.com/chihaya/chihaya/middleware/jwt"
|
_ "github.com/chihaya/chihaya/middleware/jwt"
|
||||||
_ "github.com/chihaya/chihaya/middleware/torrentapproval"
|
_ "github.com/chihaya/chihaya/middleware/torrentapproval"
|
||||||
_ "github.com/chihaya/chihaya/middleware/varinterval"
|
_ "github.com/chihaya/chihaya/middleware/varinterval"
|
||||||
)
|
|
||||||
|
|
||||||
import (
|
|
||||||
// Imports to register storage drivers.
|
// Imports to register storage drivers.
|
||||||
_ "github.com/chihaya/chihaya/storage/memory"
|
_ "github.com/chihaya/chihaya/storage/memory"
|
||||||
_ "github.com/chihaya/chihaya/storage/redis"
|
_ "github.com/chihaya/chihaya/storage/redis"
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -1,5 +1,7 @@
|
||||||
module github.com/chihaya/chihaya
|
module github.com/chihaya/chihaya
|
||||||
|
|
||||||
|
go 1.13
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/SermoDigital/jose v0.0.0-20180104203859-803625baeddc
|
github.com/SermoDigital/jose v0.0.0-20180104203859-803625baeddc
|
||||||
github.com/alicebob/gopher-json v0.0.0-20180125190556-5a6b3ba71ee6 // indirect
|
github.com/alicebob/gopher-json v0.0.0-20180125190556-5a6b3ba71ee6 // indirect
|
||||||
|
|
Loading…
Add table
Reference in a new issue