diff --git a/.travis.yml b/.travis.yml index a90a55e..01be3f1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,14 +5,17 @@ os: - osx go: - - "1.10" - - master + - "1.10.x" + - "1.11.x" + +env: + - GO111MODULE=on before_install: - pip install --user -r tests/pip-req.txt install: - - go get -u golang.org/x/vgo + - go get -t -v ./... - go get -u golang.org/x/tools/cmd/goimports - go get -u github.com/douban/gobeansdb diff --git a/Makefile b/Makefile index 3c2a281..026baf0 100644 --- a/Makefile +++ b/Makefile @@ -16,8 +16,8 @@ endif test: ./misc/gobeansdb_server.sh start go version - vgo test github.com/douban/gobeansproxy/config - vgo test github.com/douban/gobeansproxy/dstore + go test github.com/douban/gobeansproxy/config + go test github.com/douban/gobeansproxy/dstore ./misc/gobeansdb_server.sh stop template: @@ -28,4 +28,4 @@ pytest:install ./tests/run_test.sh install: - CC=$(COMPILER) vgo install ./ + CC=$(COMPILER) go install ./