-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (20 loc) · 724 Bytes
/
Makefile
File metadata and controls
22 lines (20 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
RUN := docker-compose run --rm
RUN_APP := $(RUN) app
help: ## This help
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
setup: ## setup app
docker-compose pull
docker-compose build --force-rm app
$(RUN_APP) shards install
l: ## linter
$(RUN) -e MULTI_AUTH_ENV=test app bash -c "crystal tool format"
t: ## tests
$(RUN) -e MULTI_AUTH_ENV=test app bash -c "crystal spec $(c)"
sh: ## shell into app container c="pwd"
$(RUN_APP) $(or $(c),bash)
c: ## run console.cr
$(RUN_APP) crystal run src/console.cr
update_dependency: ## update_dependency
docker-compose build --force-rm --no-cache --pull
$(RUN_APP) rm -rf /app/lib/*
$(RUN_APP) shards update