-
-
Notifications
You must be signed in to change notification settings - Fork 366
/
Makefile
30 lines (22 loc) · 764 Bytes
/
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
APP := s3scanner
DOCKER_IMAGE := hothamandcheese/s3scanner
VERSION := $(shell git describe --tags --abbrev=0)
COMMIT := $(shell git rev-parse --short HEAD)
BUILD_DATE := `date +%FT%T%z`
dev:
docker compose -f .dev/docker-compose.yml --profile default up -d
dev-mitm:
docker compose -f .dev/docker-compose.yml --profile dev-mitm up -d
docker-image:
docker build -t $(DOCKER_IMAGE):$(VERSION) -f packaging/docker/Dockerfile .
lint:
docker run -t --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.53.3 golangci-lint run -v
test:
go test ./...
test-coverage:
TEST_DB=1 TEST_MQ=1 go test ./... -coverprofile cover.out
go tool cover -html=cover.out
test-integration:
TEST_DB=1 TEST_MQ=1 go test ./...
upgrade:
go get -u ./...