-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (25 loc) · 863 Bytes
/
Makefile
File metadata and controls
32 lines (25 loc) · 863 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
C := $(shell printf "\033[35;1m-->\033[0m")
PROJECT := episodical
V := $(if $v,,@)
ENC := ${ENCRYPTION_KEYS:-"GKDb00WP3YjH7YwEwkLZZjVHNhQU6lDSx58TZBJAG+Y="}
.PHONY: start
start: ; $(info $(C) starting the dev interactive server...)
$V ENCRYPTION_KEYS=${ENC} iex -S mix phx.server
.PHONY: test
test: ; $(info $(C) running tests...)
$V mix test
.PHONY: coverage
coverage: ; $(info $(C) generating test coverage...)
$V mix test --cover
.PHONY: reset
reset: ; $(info $(C) resetting database...)
$V mix ecto.reset
.PHONY: build-image
build-image: clean ; $(info $(C) building container image...)
$V docker build -t cloudcloud/$(PROJECT):latest .
.PHONY: push
push: ; $(info $(C) pushing image to hub)
$V docker push cloudcloud/$(PROJECT):latest
.PHONY: clean
clean: ; $(info $(C) cleaning previously built assets...)
$V mix phx.digest.clean --all