Skip to content

Commit

Permalink
Cleanup of makefile and .travis
Browse files Browse the repository at this point in the history
  • Loading branch information
0x19 committed Jun 29, 2023
1 parent 793da4b commit d7b1d9b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ go:
- 1.19.x

script:
- make lint
- make test
9 changes: 0 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@ UNAME_S_LOWERCASE := $(shell echo $(UNAME_S) | tr A-Z a-z)
help: ## Display this help
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)

.PHONY: deps
deps: ## Install dependencies
ifeq ($(UNAME_S),Linux)
sudo apt-get update && sudo apt-get install -y golang golangci-lint
endif
ifeq ($(UNAME_S),Darwin)
brew install go golangci-lint
endif

.PHONY: lint
lint: ## Lint the Go code using golangci-lint
golangci-lint run --skip-dirs externals,examples
Expand Down

0 comments on commit d7b1d9b

Please sign in to comment.