From 22815af307ac492a06995c33ba9db5596e960459 Mon Sep 17 00:00:00 2001 From: ZHAO Yijun Date: Tue, 28 Aug 2018 14:57:11 +0800 Subject: [PATCH] update ci (#3) --- .travis.yml | 9 ++++++--- Makefile | 6 +++--- 2 files changed, 9 insertions(+), 6 deletions(-) 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 ./