Skip to content

Commit

Permalink
Merge pull request #68 from nukosuke/use-go-modules
Browse files Browse the repository at this point in the history
Use go modules on supported versions
  • Loading branch information
nukosuke committed Mar 13, 2019
2 parents b5c91bf + b5abf89 commit d632d6b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 12 deletions.
26 changes: 18 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
language: go

go:
- 1.9
- 1.10.x
- 1.11.x
- 1.12.x
- master
matrix:
include:
- go: 1.9
- go: 1.10.x
- go: 1.11.x
env: GO111MODULE=on
- go: 1.12.x
env: GO111MODULE=on
- go: master
env: GO111MODULE=on

before_install:
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
- if [ $GO111MODULE != "on" ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh;
fi
- go get github.com/mattn/goveralls # for profiling coverage

install:
- dep ensure
- if [ $GO111MODULE == "on" ]; then
go mod download;
else
dep ensure;
fi

script:
- go test -v ./...
Expand Down
11 changes: 7 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
build: off

clone_folder: c:\gopath\src\github.com\nukosuke\go-zendesk
clone_folder: c:\github.com\nukosuke\go-zendesk

environment:
GOPATH: c:\gopath
GO111MODULE: on

cache:
- '%LocalAppData%\go-build'
- '%GOPATH%\pkg\mod'

stack: go 1.11

install:
- go get -u github.com/golang/dep/...
- set PATH=%PATH%;%GOPATH%\bin
- dep ensure
- go mod download

before_test:
- go vet ./...
Expand Down
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/nukosuke/go-zendesk

require github.com/golang/mock v1.2.0
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/golang/mock v1.2.0 h1:28o5sBqPkBsMGnC6b4MvE2TzSr5/AT4c/1fLqVGIwlk=
github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=

0 comments on commit d632d6b

Please sign in to comment.