-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (20 loc) · 806 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
.DEFAULT_GOAL := help
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
setup: ## Install dependencies from Gemfile.
bundle install
start: ## Start web server locally.
bundle exec rackup --host 0.0.0.0 -p 4567
test: ## Run test suite (Rspec).
bundle exec rspec spec/*
rubocop: ## Run linter (Rubocop).
bundle exec rubocop
docs: ## Generate documentation (Rdoc).
bundle exec rdoc
dkr-setup: ## Build vetsi app on Docker.
docker build -t vetsi-app:v1 .
dkr-start: ## Start and lunch the vetsi on Docker.
docker run -d -p 4567:4567 --name vetsi-app vetsi-app:v1 && sleep 3 && open https://localhost:4567
dkr-test: ## Run test suite (Rspec).
docker exec -it vetsi-app bundle exec rspec