mirror of
https://github.com/sot-tech/mochi.git
synced 2026-06-13 08:13:32 -07:00
Merge pull request #458 from mrd0ll4r/update-travis
travis: update to go 1.13
This commit is contained in:
+3
-4
@@ -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:
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user