Merge pull request #458 from mrd0ll4r/update-travis

travis: update to go 1.13
This commit is contained in:
mrd0ll4r 2019-10-17 13:01:49 +09:00 committed by GitHub
commit 0a420fe053
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 8 deletions

View file

@ -1,6 +1,6 @@
language: go
go:
- 1.11.x
- 1.13.x
sudo: false
matrix:
include:
@ -9,7 +9,6 @@ matrix:
- go get -u golang.org/x/lint/golint
- go get -u golang.org/x/tools/cmd/...
script:
- export GO111MODULE=on
- go mod download
- go test -v -race $(go list ./...)
- go vet $(go list ./...)
@ -23,7 +22,7 @@ matrix:
- kill $pid
# Using HEAD of dependencies
- install:
- go get -t ./...
- go get -t -u ./...
- go get -u golang.org/x/lint/golint
- go get -u golang.org/x/tools/cmd/...
script:
@ -40,7 +39,7 @@ matrix:
allow_failures:
# Using HEAD of dependencies
- install:
- go get -t ./...
- go get -t -u ./...
- go get -u golang.org/x/lint/golint
- go get -u golang.org/x/tools/cmd/...
script:

View file

@ -10,17 +10,13 @@ import (
"github.com/chihaya/chihaya/frontend/http"
"github.com/chihaya/chihaya/frontend/udp"
"github.com/chihaya/chihaya/middleware"
)
import (
// Imports to register middleware drivers.
_ "github.com/chihaya/chihaya/middleware/clientapproval"
_ "github.com/chihaya/chihaya/middleware/jwt"
_ "github.com/chihaya/chihaya/middleware/torrentapproval"
_ "github.com/chihaya/chihaya/middleware/varinterval"
)
import (
// Imports to register storage drivers.
_ "github.com/chihaya/chihaya/storage/memory"
_ "github.com/chihaya/chihaya/storage/redis"

2
go.mod
View file

@ -1,5 +1,7 @@
module github.com/chihaya/chihaya
go 1.13
require (
github.com/SermoDigital/jose v0.0.0-20180104203859-803625baeddc
github.com/alicebob/gopher-json v0.0.0-20180125190556-5a6b3ba71ee6 // indirect