-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
32 lines (24 loc) · 874 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
.PHONY: all deps format test lint compile
MIX_ENV:=$(or $(MIX_ENV), $(MIX_ENV), dev)
all: deps format test run
deps:
@echo "\033[0m[make]\033[0;31m getting dependencies\033[0m" $<
@MIX_ENV=test mix deps.get
@echo "\033[0m[make]\033[0;33m compiling dependencies\033[0m" $<
@MIX_ENV=test mix deps.compile
format:
@echo "\033[0m[make]\033[0;32m formatting code\033[0m" $<
@mix format
test:
@echo "\033[0m[make]\033[0;32m compiling code in environment: test\033[0m" $<
@MIX_ENV=test mix compile
@echo "\033[0m[make]\033[0;34m testing code in environment: test\033[0m" $<
@MIX_ENV=test mix coveralls.html
lint:
@echo "\033[0;32m[make]\033[0;95m linting code\033[0m" $<
@mix credo --strict --verbose -a
compile:
@echo "\033[0;32m[make]\033[0;33m compiling code in environment: $(MIX_ENV) \033[0m" $<
@MIX_ENV=$(MIX_ENV) mix compile --force
run:
iex -S mix