-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (16 loc) · 687 Bytes
/
Makefile
File metadata and controls
23 lines (16 loc) · 687 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.DEFAULT_GOAL := help
.PHONY: help
build: ## Builds the application and all its dependencies as defined by the docker-compose.yml
@docker-compose build
run: ## Runs the application and all its dependencies as defined by the docker-compose.yml
@docker-compose up
test: ## Runs all tests, including integration ones
@go test -race ./...
test-short: ## Runs all tests, excluding integration ones
@go test -short -race ./...
vendor: ## Make vendored copy of dependencies
@go mod vendor
.env:
@cp .env.example .env
help:
@grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | grep ^help -v | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-22s\033[0m %s\n", $$1, $$2}'