-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (26 loc) · 774 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
31
32
33
34
35
# TODO: Test whether all APIs are functioning in current code: dev environment check
.PHONY: default
default:
@echo 'No default target.'
.PHONY: build
build:
docker buildx build --build-arg CONFIG_SOURCE=$(config_source) --build-arg CONFIG_PATH=$(config_path) -f $(base_dir)/build/$(mode)/upgraded-disco.Dockerfile -t $(image):$(version) .
.PHONY: run
run:
docker-compose -f $(base_dir)/build/$(mode)/docker-compose.yml up -d
.PHONEY: down
down:
docker-compose -f $(base_dir)/build/$(mode)/docker-compose.yml down
.PHONEY: deps
run-deps:
.PHONY: push-image
push:
docker push
.PHONY: lint
lint:
golangci-lint run
.PHONY: unit-test
unit-test:
go test -race -coverprofile=coverage.out '$(base_dir)/...'
go tool cover -html=coverage.out
.PHONY: runtime-checkst