Skip to content

Commit

Permalink
Add install-tools target
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed May 18, 2019
1 parent a324c18 commit e34b215
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
7 changes: 1 addition & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@ env:

install:
- go mod download
- GO111MODULE=off go get golang.org/x/tools/cmd/cover
- GO111MODULE=off go get github.com/golangci/golangci-lint/cmd/golangci-lint
- GO111MODULE=off go get github.com/mattn/goveralls
- GO111MODULE=off go get github.com/wadey/gocovmerge
- GO111MODULE=off go get mvdan.cc/gofumpt
- GO111MODULE=off go get mvdan.cc/gofumpt/gofumports
- make install-tools

script:
- make all
Expand Down
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ goreleaser/goreleaser.host.yaml: goreleaser/goreleaser.yaml.tmpl internal/genera
html-coverage:
go tool cover -html=coverage.out

.PHONY: install-tools
install-tools:
GO111MODULE=off go get -u \
golang.org/x/tools/cmd/cover \
github.com/golangci/golangci-lint/cmd/golangci-lint \
github.com/mattn/goveralls \
github.com/wadey/gocovmerge \
mvdan.cc/gofumpt \
mvdan.cc/gofumpt/gofumports

.PHONY: lint
lint:
go vet ./...
Expand Down
5 changes: 4 additions & 1 deletion docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ checked out chezmoi locally.

## Developing locally

chezmoi is a standard Go project, using standard Go tooling.
chezmoi is a standard Go project, using standard Go tooling, with a few extra
tools. Install these extra tools with:

make install-tools

Build chezmoi:

Expand Down

0 comments on commit e34b215

Please sign in to comment.