Skip to content

Commit

Permalink
Fix a travis install issue (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
lylex committed Dec 24, 2018
1 parent f42e0c3 commit ddecdc2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ dist: xenial
sudo: false

before_install:
- go get -u github.com/golangci/golangci-lint
- cd $(go env GOPATH)/src/github.com/golangci/golangci-lint/cmd/golangci-lint
- go install -ldflags "-X 'main.version=$(git describe --tags)' -X 'main.commit=$(git rev-parse --short HEAD)' -X 'main.date=$(date)'"
- go install -mod vendor github.com/golangci/golangci-lint/cmd/golangci-lint
- go get -u github.com/goreleaser/goreleaser

install: true
Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ SOURCE_FILES ?= ./...

export GO111MODULE := on

.PHONY: setup
setup:
echo $$(go env GOPATH)
cd $$(go env GOPATH)/src/github.com/golangci/golangci-lint/cmd/golangci-lint
go install -ldflags "-X 'main.version=$$(git describe --tags)' -X 'main.commit=$$(git rev-parse --short HEAD)' -X 'main.date=$$(date)'"
go get -u github.com/goreleaser/goreleaser

.PHONY: mod
mod:
$(GO_BIN) mod download
Expand Down

0 comments on commit ddecdc2

Please sign in to comment.