-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (33 loc) · 844 Bytes
/
Copy pathMakefile
File metadata and controls
42 lines (33 loc) · 844 Bytes
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
NAME=rafapi
.DEFAULT_GOAL:=list
go-test: # run tests
./scripts/go-test.sh
.PHONY: test
go-lint: # run linter
./scripts/go-lint.sh
.PHONY: lint
go-build: # run compilation
./scripts/go-build.sh
.PHONY: compile
docker-build: # build the app containers
./scripts/docker-build.sh
.PHONY: docker-build
docker-start: # start the app containers
./scripts/docker-start.sh
.PHONY: docker-start
docker-stop: # stop the app containers
./scripts/docker-stop.sh
.PHONY: docker-stop
curl: # test the running application via curl
./scripts/curl.sh
.PHONY: curl
list: # list available commands
@grep : ./Makefile | grep -v "grep\|.PHONY\|.DEFAULT_GOAL" | sed s/#/\\t#/
.PHONY: list
all: # run the build pipeline and start the app
@$(MAKE) go-build
@$(MAKE) go-test
@$(MAKE) go-lint
@$(MAKE) docker-build
@$(MAKE) docker-start
.PHONY: all