-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (31 loc) · 1.08 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!make
include .env.example
BIN_APP="./bin/antibruteforce"
# ==============================================================================
# Main
run: build
$(BIN_APP)
build:
go build -v -o $(BIN_APP) ./cmd/antibruteforce/
test:
go test -cover ./...
itest:
go test -tags integration ./tests/integration/...
generate:
go generate ./...
# ==============================================================================
# Tools commands
install-lint-deps:
(which golangci-lint > /dev/null) || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin v1.50.1
lint: install-lint-deps ### check by golangci linter
echo "Starting linters"
golangci-lint run
# ==============================================================================
# Docker compose commands
up:
echo "Starting docker environment"
docker-compose -f docker-compose.yml up --build
down:
docker-compose -f docker-compose.yml down
# ==============================================================================
.PHONY: build run test lint up down