use Go modules on CI

This commit is contained in:
rhysd 2018-09-23 20:39:46 +09:00
parent cc92a5255f
commit 23ccef091e
2 changed files with 5 additions and 2 deletions

View File

@ -1,8 +1,9 @@
version: "{build}"
clone_depth: 1
clone_folder: c:\gopath\src\github.com\rhysd\go-github-selfupdate
clone_folder: c:\outside-gopath
environment:
GOPATH: c:\gopath
GO111MODULE: on
install:
- echo %PATH%
- echo %GOPATH%

View File

@ -2,10 +2,12 @@ language: go
os:
- linux
- osx
env:
- GO111MODULE=on
install:
- go get -t -d -v ./...
- go version
- go env
- go get -t -d -v ./...
script:
- go build ./selfupdate/
- go build ./cmd/selfupdate-example/