1
0
mirror of https://github.com/danog/gojekyll.git synced 2024-11-27 00:34:42 +01:00

make install_dev_tools -> setup

This commit is contained in:
Oliver Steele 2017-07-12 20:01:17 -04:00
parent 8d2df7c55f
commit caad408929
3 changed files with 6 additions and 6 deletions

View File

@ -10,7 +10,7 @@ before_install:
- go get github.com/mattn/goveralls - go get github.com/mattn/goveralls
install: install:
- make install_dev_tools - make setup
- go get -t ./... - go get -t ./...
- pip install --user Pygments - pip install --user Pygments
- export PATH=$HOME/.local/bin:$PATH - export PATH=$HOME/.local/bin:$PATH

View File

@ -20,7 +20,7 @@ Fork and clone the repo.
Install package dependencies and development tools: Install package dependencies and development tools:
```bash ```bash
make install_dev_tools make setup
go get -t ./... go get -t ./...
``` ```

View File

@ -7,8 +7,8 @@ COMMIT_HASH = `git rev-parse --short HEAD 2>/dev/null`
LDFLAGS=-ldflags "-X ${PACKAGE}.Version=${COMMIT_HASH}" LDFLAGS=-ldflags "-X ${PACKAGE}.Version=${COMMIT_HASH}"
.DEFAULT_GOAL: $(BINARY) .DEFAULT_GOAL: build
.PHONY: build clean dependencies setup install lint test help .PHONY: build clean deps setup install lint test help
$(BINARY): $(SOURCES) $(BINARY): $(SOURCES)
go build ${LDFLAGS} -o ${BINARY} ${PACKAGE}/cmd/gojekyll go build ${LDFLAGS} -o ${BINARY} ${PACKAGE}/cmd/gojekyll
@ -21,14 +21,14 @@ clean: ## remove binary files
deps: ## list dependencies deps: ## list dependencies
go list -f '{{join .Imports "\n"}}' ./... | grep -v ${PACKAGE} | grep '\.' | sort | uniq go list -f '{{join .Imports "\n"}}' ./... | grep -v ${PACKAGE} | grep '\.' | sort | uniq
install_dev_tools: ## install dependencies and development tools setup: ## install dependencies and development tools
go get -u github.com/alecthomas/gometalinter go get -u github.com/alecthomas/gometalinter
gometalinter --install gometalinter --install
install: ## compile and install the executable install: ## compile and install the executable
go install ${LDFLAGS} ${PACKAGE}/cmd/gojekyll go install ${LDFLAGS} ${PACKAGE}/cmd/gojekyll
lint: ## lint the package lint: ## Run all the linters
gometalinter ./... --disable=gotype gometalinter ./... --disable=gotype
test: ## test the package test: ## test the package