attempt to support go module (#1569)

* support go module

* update golint package url

* update golint
This commit is contained in:
田欧
2018-10-15 12:52:51 +08:00
committed by GitHub
parent 01ca2530d4
commit 523435e524
5 changed files with 64 additions and 16 deletions
+9 -1
View File
@@ -11,12 +11,20 @@ go:
matrix:
fast_finish: true
include:
- go: 1.11.x
env: GO111MODULE=on
git:
depth: 10
before_install:
- if [[ "${GO111MODULE}" = "on" ]]; then mkdir "${HOME}/go"; export GOPATH="${HOME}/go"; fi
install:
- make install
- if [[ "${GO111MODULE}" = "on" ]]; then go mod download; else make install; fi
- if [[ "${GO111MODULE}" = "on" ]]; then export PATH="${GOPATH}/bin:${GOROOT}/bin:${PATH}"; fi
- if [[ "${GO111MODULE}" = "on" ]]; then make tools; fi
go_import_path: github.com/gin-gonic/gin