Skip to content

Commit

Permalink
Added GO111MODULE to build
Browse files Browse the repository at this point in the history
  • Loading branch information
bt committed Nov 12, 2018
1 parent 38bfd08 commit c305a7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
8 changes: 1 addition & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
language: go

go:
- '1.10'

install:
- go get -u golang.org/x/vgo

script:
- vgo test -v $(vgo list ./... | grep -v vendor/)
- '1.11'

before_deploy:
- zip -r "eventgen-${TRAVIS_TAG}.zip" dist/*
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ default: binary
binary: build

build_linux_x64:
GOARCH=amd64 GOOS=linux go build -o dist/bin/eventgen-linux-x64
GO111MODULE=on GOARCH=amd64 GOOS=linux go build -o dist/bin/eventgen-linux-x64

build_darwin_x64:
GOARCH=amd64 GOOS=darwin go build -o dist/bin/eventgen-macos-x64
GO111MODULE=on GOARCH=amd64 GOOS=darwin go build -o dist/bin/eventgen-macos-x64

build_windows_x64:
GOARCH=amd64 GOOS=windows go build -o dist/bin/eventgen-windows-x64.exe
GO111MODULE=on GOARCH=amd64 GOOS=windows go build -o dist/bin/eventgen-windows-x64.exe

build: dist build_linux_x64 build_darwin_x64 build_windows_x64 copy_assets

Expand Down

0 comments on commit c305a7b

Please sign in to comment.